Files
kener/migrations/20250201152526_add_new_column_to_incidents.js
T
Raj Nandan Sharma 6b88cf11a1 changes
2026-01-22 18:29:42 +05:30

12 lines
295 B
JavaScript

export function up(knex) {
return knex.schema.alterTable("incidents", function (table) {
table.text("incident_type").defaultTo("INCIDENT");
});
}
export function down(knex) {
return knex.schema.alterTable("incidents", function (table) {
table.dropColumn("incident_type");
});
}