MCPcopy Create free account
hub / github.com/aptabase/aptabase / AddCache

Class AddCache

src/Data/Migrations/0010_AddCache.cs:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace Aptabase.Data.Migrations;
4
5[Migration(0010)]
6public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected