diff --git a/cmd/migrate/main.go b/cmd/migrate/main.go index ecaa53d..fa359a1 100644 --- a/cmd/migrate/main.go +++ b/cmd/migrate/main.go @@ -1,11 +1,12 @@ // migrate — standalone CLI that applies tenant-registry's SQL migrations. // // Usage: -// migrate up apply all pending migrations -// migrate down roll back the most recent migration -// migrate down --all roll back every migration (DESTRUCTIVE) -// migrate version print the current schema version -// migrate force mark a specific version applied (recovery) +// +// migrate up apply all pending migrations +// migrate down roll back the most recent migration +// migrate down --all roll back every migration (DESTRUCTIVE) +// migrate version print the current schema version +// migrate force mark a specific version applied (recovery) // // Reads DATABASE_URL from the environment. Migrations are embedded so this // binary is self-contained — ship it as an Orca init container in prod. diff --git a/migrations/migrations_test.go b/migrations/migrations_test.go index 1214c26..227b4b7 100644 --- a/migrations/migrations_test.go +++ b/migrations/migrations_test.go @@ -275,11 +275,11 @@ func TestSlugConstraint(t *testing.T) { {"acme", false}, {"a-c-m-e", false}, {"a1b2c3", false}, - {"a", true}, // too short - {"-acme", true}, // leading dash - {"acme-", true}, // trailing dash - {"AcMe", true}, // uppercase - {"a_b", true}, // underscore + {"a", true}, // too short + {"-acme", true}, // leading dash + {"acme-", true}, // trailing dash + {"AcMe", true}, // uppercase + {"a_b", true}, // underscore } for _, c := range cases { _, err := db.Exec(`INSERT INTO tenants (slug, name) VALUES ($1, 'X')`, c.slug)