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