PPPAIMT-Crest/backend/migrations/20261120130000_pppaimt_doct...

14 lines
460 B
JavaScript

/** Add Status (active/disabled) so listed doctors can be turned off without deleting them. */
export async function up(knex) {
await knex.schema.alterTable('pppaimt_doctors', (table) => {
table.string('status', 32).notNullable().defaultTo('active').after('contact_no');
});
}
/** Remove doctor status column. */
export async function down(knex) {
await knex.schema.alterTable('pppaimt_doctors', (table) => {
table.dropColumn('status');
});
}