diff --git a/migrations/src/m20240718_000003_create_workspace.rs b/migrations/src/m20240718_000003_create_workspace.rs index a285b9018..735ed0a9a 100644 --- a/migrations/src/m20240718_000003_create_workspace.rs +++ b/migrations/src/m20240718_000003_create_workspace.rs @@ -24,6 +24,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(Workspace::Table) + .if_not_exists() .col( ColumnDef::new(Workspace::Id) .text() diff --git a/migrations/src/m20240718_000007_create_file.rs b/migrations/src/m20240718_000007_create_file.rs index 4b5f5746a..b77793512 100644 --- a/migrations/src/m20240718_000007_create_file.rs +++ b/migrations/src/m20240718_000007_create_file.rs @@ -116,6 +116,7 @@ impl Migration { .create_table( Table::create() .table(SnapshotFile::Table) + .if_not_exists() .col(ColumnDef::new(SnapshotFile::SnapshotId).text()) .foreign_key( ForeignKey::create() diff --git a/migrations/src/m20240718_000008_create_task.rs b/migrations/src/m20240718_000008_create_task.rs index d0c59c5cf..d6b1522c2 100644 --- a/migrations/src/m20240718_000008_create_task.rs +++ b/migrations/src/m20240718_000008_create_task.rs @@ -24,6 +24,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(Task::Table) + .if_not_exists() .col( ColumnDef::new(Task::Id) .text() diff --git a/migrations/src/m20240718_000009_create_grouppermission.rs b/migrations/src/m20240718_000009_create_grouppermission.rs index 4470caf2e..c9f89b72b 100644 --- a/migrations/src/m20240718_000009_create_grouppermission.rs +++ b/migrations/src/m20240718_000009_create_grouppermission.rs @@ -24,6 +24,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(Grouppermission::Table) + .if_not_exists() .col( ColumnDef::new(Grouppermission::Id) .text() diff --git a/migrations/src/m20240718_000010_create_userpermission.rs b/migrations/src/m20240718_000010_create_userpermission.rs index 15159e2d6..c41bb87c6 100644 --- a/migrations/src/m20240718_000010_create_userpermission.rs +++ b/migrations/src/m20240718_000010_create_userpermission.rs @@ -24,6 +24,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(Userpermission::Table) + .if_not_exists() .col( ColumnDef::new(Userpermission::Id) .text()