package todo import ( "embed" "amadan.net/rastrillo/rastrillo/migrate" "amadan.net/rastrillo/rastrillo/sessions" ) //go:embed migrations/*.sql var migrationFS embed.FS // Schema is this app's own migrations, in order, and nothing else: it is // what `rastrillo migration generate` and `rastrillo migration check` // diff against Models. Migrations apply once at boot and are never // re-run or reversed; never edit one that has shipped, add a new one. var Schema = migrate.MustFromFS(migrationFS, "todo") // BootSchema is everything applied at boot: the sessions table first, // then the app's own. Subsystems go here, never in Schema, or check // would propose dropping their tables. var BootSchema = migrate.Merge(sessions.Schema, Schema)