forked from Ruderverein-Donau-Linz/rowt
push
This commit is contained in:
@ -43,7 +43,13 @@ impl MigrationTrait for Migration {
|
||||
.not_null()
|
||||
.default(Expr::current_timestamp()),
|
||||
)
|
||||
.primary_key(Index::create().col(Trip::Day).col(Trip::UserId))
|
||||
.primary_key(
|
||||
Index::create()
|
||||
.col(Trip::Day)
|
||||
.col(Trip::UserId)
|
||||
.col(Trip::CoxId)
|
||||
.col(Trip::Begin),
|
||||
)
|
||||
.to_owned(),
|
||||
)
|
||||
.await
|
||||
|
Reference in New Issue
Block a user