test
test
This commit is contained in:
@@ -9,13 +9,9 @@ name = "migration"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
async-std = { version = "1.13.0", features = ["attributes", "tokio1"] }
|
||||
chrono = { version = "0.4.39", features = ["serde"] }
|
||||
|
||||
[dependencies.sea-orm-migration]
|
||||
version = "1.1.4"
|
||||
features = [
|
||||
"runtime-tokio-rustls", # `ASYNC_RUNTIME` feature
|
||||
"sqlx-postgres", # `DATABASE_DRIVER` feature
|
||||
"with-chrono",
|
||||
]
|
||||
features = ["runtime-tokio-rustls", "sqlx-postgres", "with-chrono"]
|
||||
|
||||
@@ -13,9 +13,9 @@ impl MigrationTrait for Migration {
|
||||
.table(Benutzer::Table)
|
||||
.if_not_exists()
|
||||
.col(pk_uuid(Benutzer::Id))
|
||||
.col(string(Benutzer::EMail))
|
||||
.col(string(Benutzer::EMail).not_null())
|
||||
.col(string(Benutzer::Kennung))
|
||||
.col(string(Benutzer::PasswordHash))
|
||||
.col(string_null(Benutzer::PasswordHash))
|
||||
.col(string(Benutzer::Nachname))
|
||||
.col(string(Benutzer::Vorname))
|
||||
.col(
|
||||
@@ -28,7 +28,7 @@ impl MigrationTrait for Migration {
|
||||
.not_null()
|
||||
.default(Utc::now()),
|
||||
)
|
||||
.col(boolean(Benutzer::IstAktiv))
|
||||
.col(boolean(Benutzer::IstAktiv).default(true))
|
||||
.to_owned(),
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user