@nina-protocol/nina-db 0.0.114 → 0.0.116

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,18 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ export const up = function (knex) {
6
+ return knex.schema.table('releases', table => {
7
+ table.boolean('migratedFromV1').defaultTo(false);
8
+ });
9
+ };
10
+ /**
11
+ * @param { import("knex").Knex } knex
12
+ * @returns { Promise<void> }
13
+ */
14
+ export const down = function (knex) {
15
+ return knex.schema.table('releases', table => {
16
+ table.dropColumn('migratedFromV1');
17
+ });
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -3,7 +3,7 @@
3
3
  * @returns { Promise<void> }
4
4
  */
5
5
  export const up = function(knex) {
6
- return knex.schema.table('transactions', table => {
6
+ return knex.schema.table('releases', table => {
7
7
  table.boolean('migratedFromV1').defaultTo(false);
8
8
  });
9
9
  };
@@ -13,7 +13,7 @@ export const up = function(knex) {
13
13
  * @returns { Promise<void> }
14
14
  */
15
15
  export const down = function(knex) {
16
- return knex.schema.table('transactions', table => {
16
+ return knex.schema.table('releases', table => {
17
17
  table.dropColumn('migratedFromV1');
18
18
  });
19
19
  };