Skip to content

Commit

Permalink
Add default to migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter committed Feb 1, 2025
1 parent 17685e2 commit c1dbb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/Migrations/2025_01_29_admin_upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export async function up(db: Kysely<any>): Promise<void> {
live_election: Ballots submitted by voters during election
prior_election: Election admin uploaded ballots from a previous election
*/
.addColumn('ballot_source', 'varchar', (col) => col.notNull())
.addColumn('ballot_source', 'varchar', (col) => col.notNull().defaultTo('live_election'))
// unique identifier for mapping public archive elections to their real elections
// ex. Genola_11022021_CityCouncil
.addColumn('public_archive_id', 'varchar' )
Expand Down

0 comments on commit c1dbb59

Please sign in to comment.