@nina-protocol/nina-db 0.0.116 → 0.0.118

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('posts', table => {
7
+ table.boolean('archived').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('posts', table => {
16
+ table.dropColumn('archived');
17
+ });
18
+ };
@@ -23,6 +23,7 @@ class Transaction extends Model {
23
23
  'ReleaseInitAndPurchase',
24
24
  'ReleaseInitV2',
25
25
  'ReleaseUpdate',
26
+ 'ReleaseUpdateMetaplex',
26
27
  'ExchangeAccept',
27
28
  'ExchangeCancel',
28
29
  'ExchangeInit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ export const up = function(knex) {
6
+ return knex.schema.table('posts', table => {
7
+ table.boolean('archived').defaultTo(false);
8
+ });
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('posts', table => {
17
+ table.dropColumn('archived');
18
+ });
19
+ };
@@ -193,6 +193,7 @@ export default class Release extends Model {
193
193
  .ignore();
194
194
  }
195
195
  }
196
+
196
197
  if (programId === process.env.NINA_PROGRAM_ID) {
197
198
  await this.processRevenueShares(releaseAccount, release);
198
199
  }
@@ -24,6 +24,7 @@ class Transaction extends Model {
24
24
  'ReleaseInitAndPurchase',
25
25
  'ReleaseInitV2',
26
26
  'ReleaseUpdate',
27
+ 'ReleaseUpdateMetaplex',
27
28
  'ExchangeAccept',
28
29
  'ExchangeCancel',
29
30
  'ExchangeInit',