This commit is contained in:
Billy Chan 2021-11-16 13:09:07 +08:00
parent 36886e74cd
commit 3d5f4424a8
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -150,7 +150,7 @@ pub async fn create_table_without_asserts(
if builder != DbBackend::Sqlite {
let stmt = builder.build(
Table::drop()
.table(Alias::new(create.get_table_name().unwrap().as_ref()))
.table(create.get_table_name().unwrap().clone())
.if_exists()
.cascade(),
);