Add generated database entity, just recipe and fix config table missing PK
This commit is contained in:
@@ -22,7 +22,12 @@ impl MigrationTrait for Migration {
|
||||
Table::create()
|
||||
.table(Config::Table)
|
||||
.if_not_exists()
|
||||
.col(ColumnDef::new(Config::Key).string().not_null().unique_key())
|
||||
.col(
|
||||
ColumnDef::new(Config::Key)
|
||||
.string()
|
||||
.not_null()
|
||||
.primary_key(),
|
||||
)
|
||||
.col(ColumnDef::new(Config::Value).string().not_null())
|
||||
.col(
|
||||
ColumnDef::new(Config::CreatedAt)
|
||||
|
||||
Reference in New Issue
Block a user