From d771293a43044ec3e658ed22626fdd7229af31bc Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Sat, 8 May 2021 13:08:57 +0200 Subject: [PATCH] Migrate deprecated create_if_not_exists --- src/domain/sql_tables.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domain/sql_tables.rs b/src/domain/sql_tables.rs index bb7a0c9..cc74834 100644 --- a/src/domain/sql_tables.rs +++ b/src/domain/sql_tables.rs @@ -40,7 +40,7 @@ pub async fn init_table(pool: &Pool) -> sqlx::Result<()> { sqlx::query( &Table::create() .table(Users::Table) - .create_if_not_exists() + .if_not_exists() .col( ColumnDef::new(Users::UserId) .string_len(255) @@ -67,7 +67,7 @@ pub async fn init_table(pool: &Pool) -> sqlx::Result<()> { sqlx::query( &Table::create() .table(Groups::Table) - .create_if_not_exists() + .if_not_exists() .col( ColumnDef::new(Groups::GroupId) .integer() @@ -86,7 +86,7 @@ pub async fn init_table(pool: &Pool) -> sqlx::Result<()> { sqlx::query( &Table::create() .table(Memberships::Table) - .create_if_not_exists() + .if_not_exists() .col( ColumnDef::new(Memberships::UserId) .string_len(255)