fix: unique pro evideční číslo přihlášky

This commit is contained in:
EETagent 2022-10-24 12:56:45 +02:00
parent ae89d23585
commit 08fe562088

View file

@ -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())