Commits (3)
......@@ -4,7 +4,7 @@
<RootNamespace>Coscine.Migrations</RootNamespace>
<AssemblyName>Coscine.Migrations</AssemblyName>
<TargetFrameworks>net5.0;net461</TargetFrameworks>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......@@ -23,8 +23,9 @@
<EmbeddedResource Include="Migrations\Migration202005281400ProjectUrl_up.sql" />
<EmbeddedResource Include="Migrations\Migration202006261208ProjectQuotas_up.sql" />
<EmbeddedResource Include="Migrations\Migration202101181145DFNAAI_up.sql" />
<EmbeddedResource Include="Migrations\Migration202102101200RdsS3_down.sql" />
<EmbeddedResource Include="Migrations\Migration202102101200RdsS3_up.sql" />
<EmbeddedResource Include="Migrations\Migration202102101200RdsS3_down.sql" />
<EmbeddedResource Include="Migrations\Migration202102101200RdsS3_up.sql" />
<EmbeddedResource Include="Migrations\Migration202104010900RdsS3Fix_up.sql" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Coscine.Configuration" Version="2.*-*" />
......
using FluentMigrator;
namespace Coscine.Migrations.Migrations
{
//yyyymmddhhmm
[Migration(202104010900)]
public class Migration202104010900RdsS3Fix : Migration
{
public override void Down()
{
}
public override void Up()
{
Execute.EmbeddedScript("Migration202104010900RdsS3Fix_up.sql");
}
}
}
UPDATE ProjectQuotas
SET [Quota] = 0
WHERE [ResourceTypeId] = (
SELECT RT.[Id]
FROM ResourceTypes RT
WHERE RT.[DisplayName] = 'rdss3'
);
\ No newline at end of file