fix(migration): add create if not exists for tables
This commit is contained in:
@@ -10,6 +10,7 @@ impl MigrationTrait for Migration {
|
||||
.create_table(
|
||||
Table::create()
|
||||
.table(Lobbies::Table)
|
||||
.if_not_exists()
|
||||
.col(
|
||||
ColumnDef::new(Lobbies::Id)
|
||||
.integer()
|
||||
|
||||
@@ -10,6 +10,7 @@ impl MigrationTrait for Migration {
|
||||
.create_table(
|
||||
Table::create()
|
||||
.table(Players::Table)
|
||||
.if_not_exists()
|
||||
.col(
|
||||
ColumnDef::new(Players::Id)
|
||||
.integer()
|
||||
|
||||
Reference in New Issue
Block a user