Skip to content

Commit

Permalink
fixed migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
nullhexcode committed Dec 26, 2023
1 parent 39ace23 commit 2869fa4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 50 deletions.
21 changes: 0 additions & 21 deletions server/migrations/20231015153412_subscription_plans.js

This file was deleted.

4 changes: 4 additions & 0 deletions server/migrations/20231020133632_person_subscribe_plan_id.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
exports.up = function (knex) {
return knex.schema.table('person', (table) => {
table.integer('subscribe_plan_id');
table.boolean('is_reached_max_alerts');
table.boolean('is_subscription_canceled');
});
};

exports.down = function (knex) {
return knex.schema.table('person', (table) => {
table.dropColumns('subscribe_plan_id');
table.dropColumns('is_reached_max_alerts');
table.dropColumns('is_subscription_canceled');
});
};
11 changes: 0 additions & 11 deletions server/migrations/20231021142202_is_reached_max_alerts.js

This file was deleted.

11 changes: 0 additions & 11 deletions server/migrations/20231104163221_is_subscription_canceled.js

This file was deleted.

14 changes: 7 additions & 7 deletions server/migrations/20231105213356_scheduled_tasks.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
exports.up = function (knex) {
return knex.schema.createTable('scheduled_tasks', table => {
table.increments('id').primary();
table.integer('person_id');
table.integer('subscription_id');
table.string('date');
});
return knex.schema.createTable('scheduled_tasks', table => {
table.increments('id').primary();
table.integer('person_id');
table.integer('subscription_id');
table.string('date');
});
};

exports.down = function (knex) {
return knex.schema.dropTable('scheduled_tasks');
return knex.schema.dropTable('scheduled_tasks');
};

0 comments on commit 2869fa4

Please sign in to comment.