feat: Add cancellation effective date to subscriptions

This commit is contained in:
Faruk AYDIN
2023-04-11 22:45:12 +02:00
parent 4e182b49f9
commit 596be24d92
3 changed files with 37 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
import { Knex } from 'knex';
import appConfig from '../../config/app';
export async function up(knex: Knex): Promise<void> {
if (!appConfig.isCloud) return;
return knex.schema.table('subscriptions', (table) => {
table.date('cancellation_effective_date');
});
}
export async function down(knex: Knex): Promise<void> {
if (!appConfig.isCloud) return;
return knex.schema.table('subscriptions', (table) => {
table.dropColumn('cancellation_effective_date');
});
}