| 3 | namespace Aptabase.Data.Migrations; |
| 4 | |
| 5 | [Migration(0010)] |
| 6 | public class AddCache : Migration |
| 7 | { |
| 8 | public override void Up() |
| 9 | { |
| 10 | Create.Table("cache") |
| 11 | .WithColumn("key").AsString(100).NotNullable().PrimaryKey() |
| 12 | .WithColumn("value").AsCustom("TEXT").NotNullable() |
| 13 | .WithColumn("expires_at").AsDateTimeOffset().NotNullable(); |
| 14 | } |
| 15 | |
| 16 | public override void Down() |
| 17 | { |
| 18 | Delete.Table("cache"); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected