Allow fromName to be null
This commit is contained in:
17
src/db/migrations/20210314175439_fromName_null.ts
Normal file
17
src/db/migrations/20210314175439_fromName_null.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { Knex } from "knex";
|
||||
|
||||
export async function up(knex: Knex) {
|
||||
return knex.transaction((trx) =>
|
||||
trx.schema.alterTable("voicemails", (table) => {
|
||||
table.string("fromName", 64).alter();
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
export async function down(knex: Knex) {
|
||||
return knex.transaction((trx) =>
|
||||
trx.schema.alterTable("voicemails", (table) => {
|
||||
table.string("fromName", 64).notNullable().alter();
|
||||
})
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user