oficina / mapa Public

Clone
git clone https://amadan.net/oficina/mapa

Plain git — no account needed to clone.

Download

Download this file

1package mapa
2
3import (
4 "embed"
5
6 "amadan.net/rastrillo/rastrillo/auth"
7 "amadan.net/rastrillo/rastrillo/migrate"
8 "amadan.net/rastrillo/rastrillo/sessions"
9)
10
11//go:embed migrations/*.sql
12var migrationFS embed.FS
13
14// Schema is this app's own migrations, in order, and nothing else: it is
15// what `rastrillo migration generate` and `check` read, and a subsystem's
16// tables mixed in would look like tables Models forgot.
17var Schema = migrate.MustFromFS(migrationFS, "mapa")
18
19// BootSchema is everything applied at boot: sessions and auth first,
20// then this app's own. Fichas ran eight days in production with this
21// line missing its subsystems, so no sign-in could complete; the
22// sign-in flow test is what stops that happening silently here.
23var BootSchema = migrate.Merge(sessions.Schema, auth.Schema, Schema)
24