PPPAIMT-Crest/backend/migrations/20261027170000_consent_pdf.js

19 lines
453 B
JavaScript

/**
* Stored PDF of the PIS/ICF a physician consented to.
* @param {import('knex').Knex} knex
*/
export async function up(knex) {
await knex.schema.alterTable('consents', (table) => {
table.string('consent_pdf_key', 512).nullable().after('answers');
});
}
/**
* @param {import('knex').Knex} knex
*/
export async function down(knex) {
await knex.schema.alterTable('consents', (table) => {
table.dropColumn('consent_pdf_key');
});
}