-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add confirmations at end of roster signup form (#30)
add migrations and changes to rjsf object
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
packages/backend/migrations/20240504210756_roster_confirmations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Knex } from 'knex'; | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
return knex.schema.alterTable('roster_participants', (table) => { | ||
table.boolean('hasReadEssentialMindshark').defaultTo(false); | ||
table.boolean('agreesToParticipateInTearDown').defaultTo(false); | ||
table.boolean('agreesToParticipateInShifts').defaultTo(false); | ||
table.boolean('agreesToPayDues').defaultTo(false); | ||
}); | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
return knex.schema.alterTable('roster_participants', (table) => { | ||
table.dropColumn('hasReadEssentialMindshark'); | ||
table.dropColumn('agreesToParticipateInTearDown'); | ||
table.dropColumn('agreesToParticipateInShifts'); | ||
table.dropColumn('agreesToPayDues'); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters