mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-24 17:11:49 +00:00
fix: unique pro evideční číslo přihlášky
This commit is contained in:
parent
3fb5a51cfb
commit
4493e408e3
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ impl MigrationTrait for Migration {
|
||||||
ColumnDef::new(Parent::Application)
|
ColumnDef::new(Parent::Application)
|
||||||
.integer()
|
.integer()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key(),
|
.primary_key()
|
||||||
|
.unique_key(),
|
||||||
)
|
)
|
||||||
.col(ColumnDef::new(Parent::Name).string())
|
.col(ColumnDef::new(Parent::Name).string())
|
||||||
.col(ColumnDef::new(Parent::Surname).string())
|
.col(ColumnDef::new(Parent::Surname).string())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue