Migrate user_id to BIGINT (#55084)
This commit is contained in:
@@ -24,4 +24,8 @@ func addShortURLMigrations(mg *Migrator) {
|
||||
mg.AddMigration("create short_url table v1", NewAddTableMigration(shortURLV1))
|
||||
|
||||
mg.AddMigration("add index short_url.org_id-uid", NewAddIndexMigration(shortURLV1, shortURLV1.Indices[0]))
|
||||
|
||||
mg.AddMigration("alter table short_url alter column created_by type to bigint", NewRawSQLMigration("").
|
||||
Mysql("ALTER TABLE short_url MODIFY created_by BIGINT;").
|
||||
Postgres("ALTER TABLE short_url ALTER COLUMN created_by TYPE BIGINT;"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user