Commit 7978e337 authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Fix: Fixed rds s3 quota (coscine/issues#1434)

parent 6598f894
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment