implement modules

- migrations
- migrate up
- migrate down to blank
- auto migrate
This commit is contained in:
Elijah Duffy
2025-05-30 16:53:53 -07:00
parent eef1c3c38d
commit d0e7689cd1
4 changed files with 356 additions and 0 deletions

15
migrate.go Normal file
View File

@@ -0,0 +1,15 @@
package migrate
const (
// ModuleMigrationsName is the name of the migrations module.
ModuleMigrationsName = "migrations"
// ModuleMigrateUpName is the name of the migrate up module.
ModuleMigrateUpName = "migrate up"
// ModuleMigrateBlankName is the name of the migrate blank module.
ModuleMigrateBlankName = "migrate down to blank"
// ModuleAutoMigrateName is the name of the auto-migrate module.
ModuleAutoMigrateName = "auto migrate"
)