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