mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
Fix database migration default values for modify timestamps
Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
This commit is contained in:
@@ -1127,7 +1127,7 @@ async fn migrate_to_v11(transaction: DatabaseTransaction) -> Result<DatabaseTran
|
|||||||
ColumnDef::new(Users::ModifiedDate)
|
ColumnDef::new(Users::ModifiedDate)
|
||||||
.date_time()
|
.date_time()
|
||||||
.not_null()
|
.not_null()
|
||||||
.default("CURRENT_TIMESTAMP"),
|
.default(chrono::Utc::now().naive_utc()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -1143,7 +1143,7 @@ async fn migrate_to_v11(transaction: DatabaseTransaction) -> Result<DatabaseTran
|
|||||||
ColumnDef::new(Users::PasswordModifiedDate)
|
ColumnDef::new(Users::PasswordModifiedDate)
|
||||||
.date_time()
|
.date_time()
|
||||||
.not_null()
|
.not_null()
|
||||||
.default("CURRENT_TIMESTAMP"),
|
.default(chrono::Utc::now().naive_utc()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -1159,7 +1159,7 @@ async fn migrate_to_v11(transaction: DatabaseTransaction) -> Result<DatabaseTran
|
|||||||
ColumnDef::new(Groups::ModifiedDate)
|
ColumnDef::new(Groups::ModifiedDate)
|
||||||
.date_time()
|
.date_time()
|
||||||
.not_null()
|
.not_null()
|
||||||
.default("CURRENT_TIMESTAMP"),
|
.default(chrono::Utc::now().naive_utc()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user