MCPcopy Index your code
hub / github.com/dnote/dnote / Migrate

Function Migrate

pkg/server/database/migrate.go:69–71  ·  view source on GitHub ↗

Migrate runs the migrations using the embedded migration files

(db *gorm.DB)

Source from the content-addressed store, hash-verified

67
68// Migrate runs the migrations using the embedded migration files
69func Migrate(db *gorm.DB) error {
70 return migrate(db, migrations.Files)
71}
72
73// getMigrationFiles reads, validates, and sorts migration files
74func getMigrationFiles(fsys fs.FS) ([]migrationFile, error) {

Callers 3

InitDBFunction · 0.92
InitMemoryDBFunction · 0.92
initDBFunction · 0.92

Calls 1

migrateFunction · 0.85

Tested by

no test coverage detected