Files
garage/backend/migrations/migrations.go
T
2026-08-06 18:26:45 +12:00

17 lines
527 B
Go

// 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