Initial commit
This commit is contained in:
commit
b6014c6ffc
47 files changed
+4329
No files matched your search
@@ -0,0 +1,16 @@
|
||||
// Package migrations embeds the DB schema for both supported drivers so the
|
||||
// server can apply it on startup with no separate migrate step.
|
||||
//
|
||||
// Postgres uses versioned golang-migrate .sql files (PostgresFS). SQLite
|
||||
// uses one idempotent schema file applied directly (SQLiteSchemaSQL) — it's
|
||||
// a local dev/testing convenience DB, not something that needs migration
|
||||
// history.
|
||||
package migrations
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed postgres/*.sql
|
||||
var PostgresFS embed.FS
|
||||
|
||||
//go:embed sqlite/schema.sql
|
||||
var SQLiteSchemaSQL string
|
||||
Reference in new issue
Block a user