v0.15-WORKINGV1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use chrono::DateTime;
|
||||
//use chrono::DateTime;
|
||||
use sea_orm_migration::prelude::*;
|
||||
|
||||
#[derive(DeriveMigrationName)]
|
||||
@@ -36,7 +36,7 @@ impl MigrationTrait for Migration {
|
||||
.col(ColumnDef::new(Book::Comments).string())
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -62,7 +62,7 @@ impl MigrationTrait for Migration {
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -88,7 +88,7 @@ impl MigrationTrait for Migration {
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -114,7 +114,7 @@ impl MigrationTrait for Migration {
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -140,7 +140,7 @@ impl MigrationTrait for Migration {
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -166,7 +166,7 @@ impl MigrationTrait for Migration {
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await;
|
||||
.await.expect("Migration failed");
|
||||
|
||||
manager
|
||||
.create_table(
|
||||
@@ -201,22 +201,22 @@ impl MigrationTrait for Migration {
|
||||
|
||||
manager
|
||||
.drop_table(Table::drop().table(Book::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookAuthor::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookPerson::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookPlace::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookSubject::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookTime::Table).to_owned())
|
||||
.await;
|
||||
.await.expect("Drop failed");
|
||||
manager
|
||||
.drop_table(Table::drop().table(BookISBN::Table).to_owned())
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user