fix(migration): add create if not exists for tables

This commit is contained in:
Suiranoil
2023-07-14 00:18:53 +03:00
parent d83e507913
commit c17c83982f
2 changed files with 2 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ impl MigrationTrait for Migration {
.create_table(
Table::create()
.table(Lobbies::Table)
.if_not_exists()
.col(
ColumnDef::new(Lobbies::Id)
.integer()

View File

@@ -10,6 +10,7 @@ impl MigrationTrait for Migration {
.create_table(
Table::create()
.table(Players::Table)
.if_not_exists()
.col(
ColumnDef::new(Players::Id)
.integer()