14 lines
460 B
JavaScript
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');
|
|
});
|
|
}
|