mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Small fix to enable mysql schema creation
This commit is contained in:
parent
c64d32e2c0
commit
1688994b46
@ -116,6 +116,7 @@ pub async fn upgrade_to_v1(pool: &DbConnection) -> std::result::Result<(), sea_o
|
|||||||
.col(
|
.col(
|
||||||
ColumnDef::new(Groups::GroupId)
|
ColumnDef::new(Groups::GroupId)
|
||||||
.integer()
|
.integer()
|
||||||
|
.auto_increment()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key(),
|
.primary_key(),
|
||||||
)
|
)
|
||||||
@ -309,7 +310,7 @@ pub async fn upgrade_to_v1(pool: &DbConnection) -> std::result::Result<(), sea_o
|
|||||||
Table::create()
|
Table::create()
|
||||||
.table(Metadata::Table)
|
.table(Metadata::Table)
|
||||||
.if_not_exists()
|
.if_not_exists()
|
||||||
.col(ColumnDef::new(Metadata::Version).tiny_integer()),
|
.col(ColumnDef::new(Metadata::Version).tiny_unsigned()),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user