@nina-protocol/nina-db 0.0.112 → 0.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ export const up = function (knex) {
6
+ return knex.schema.table('subscriptions', table => {
7
+ table.string('page_ref').nullable();
8
+ table.string('page_ref_type').nullable();
9
+ });
10
+ };
11
+ /**
12
+ * @param { import("knex").Knex } knex
13
+ * @returns { Promise<void> }
14
+ */
15
+ export const down = function (knex) {
16
+ return knex.schema.table('subscriptions', table => {
17
+ table.dropColumn('page_ref');
18
+ table.dropColumn('page_ref_type');
19
+ });
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.112",
3
+ "version": "0.0.113",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ export const up = function(knex) {
6
+ return knex.schema.table('subscriptions', table => {
7
+ table.string('page_ref').nullable();
8
+ table.string('page_ref_type').nullable();
9
+ });
10
+ };
11
+
12
+ /**
13
+ * @param { import("knex").Knex } knex
14
+ * @returns { Promise<void> }
15
+ */
16
+ export const down = function(knex) {
17
+ return knex.schema.table('subscriptions', table => {
18
+ table.dropColumn('page_ref');
19
+ table.dropColumn('page_ref_type');
20
+ });
21
+ };