Commits (3)
......@@ -4,7 +4,7 @@
<RootNamespace>Coscine.Migrations</RootNamespace>
<AssemblyName>Coscine.Migrations</AssemblyName>
<TargetFrameworks>net5.0;net461</TargetFrameworks>
<Version>2.3.0</Version>
<Version>2.4.0</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......
using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coscine.Migrations
{
[Migration(202105261518)]
public class Migration202105261518ResourceArchiving : FluentMigrator.Migration
{
public override void Down()
{
Delete.Column("Archived").FromTable("Resources");
}
public override void Up()
{
Alter.Table("Resources")
.AddColumn("Archived").AsString().WithDefaultValue("0");
}
}
}