forked from Ruderverein-Donau-Linz/rowt
push
This commit is contained in:
@ -18,11 +18,7 @@ impl MigrationTrait for Migration {
|
||||
.integer()
|
||||
.default(0),
|
||||
)
|
||||
.col(
|
||||
ColumnDef::new(Day::PlannedStartingTime)
|
||||
.string()
|
||||
.default(""),
|
||||
)
|
||||
.col(ColumnDef::new(Day::PlannedStartingTime).string())
|
||||
.col(
|
||||
ColumnDef::new(Day::OpenRegistration)
|
||||
.boolean()
|
||||
|
@ -1,4 +1,5 @@
|
||||
use sea_orm_migration::prelude::*;
|
||||
use sea_query::Expr;
|
||||
|
||||
use crate::m20230208_114547_create_day::Day;
|
||||
use crate::m20230209_063357_create_user::User;
|
||||
@ -40,7 +41,7 @@ impl MigrationTrait for Migration {
|
||||
ColumnDef::new(Trip::Created)
|
||||
.timestamp()
|
||||
.not_null()
|
||||
.default("CURRENT_TIMESTAMP"),
|
||||
.default(Expr::current_timestamp()),
|
||||
)
|
||||
.primary_key(Index::create().col(Trip::Day).col(Trip::UserId))
|
||||
.to_owned(),
|
||||
|
Reference in New Issue
Block a user