@nina-protocol/nina-db 0.0.79 → 0.0.81

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.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export const up = function (knex) {
6
6
  return knex.schema.alterTable('subscriptions', table => {
7
- table.string('publicKey').nullable().alter();
7
+ table.dropColumn('publicKey');
8
8
  });
9
9
  };
10
10
  /**
@@ -12,7 +12,4 @@ export const up = function (knex) {
12
12
  * @returns { Promise<void> }
13
13
  */
14
14
  export const down = function (knex) {
15
- return knex.schema.alterTable('subscriptions', table => {
16
- table.string('publicKey').notNullable().alter();
17
- });
18
15
  };
@@ -51,7 +51,7 @@ export default class Release extends Model {
51
51
  return release;
52
52
  }
53
53
  const connection = new anchor.web3.Connection(process.env.SOLANA_CLUSTER_URL);
54
- const provider = new anchor.AnchorProvider(connection, {}, { commitment: 'processed' });
54
+ const provider = new anchor.AnchorProvider(connection, {}, { commitment: 'confirmed' });
55
55
  const program = await anchor.Program.at(process.env.NINA_PROGRAM_ID, provider);
56
56
  const metaplex = new Metaplex(connection);
57
57
  const releaseAccount = await program.account.release.fetch(new anchor.web3.PublicKey(publicKey), 'confirmed');
@@ -13,7 +13,6 @@ class Subscription extends Model {
13
13
  type: 'object',
14
14
  required: ['datetime'],
15
15
  properties: {
16
- publicKey: { type: 'string' },
17
16
  datetime: { type: 'string' },
18
17
  from: { type: 'string' },
19
18
  to: { type: 'string' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export const up = function(knex) {
6
6
  return knex.schema.alterTable('subscriptions', table => {
7
- table.string('publicKey').nullable().alter();
7
+ table.dropColumn('publicKey');
8
8
  });
9
9
  };
10
10
 
@@ -13,7 +13,4 @@ export const up = function(knex) {
13
13
  * @returns { Promise<void> }
14
14
  */
15
15
  export const down = function(knex) {
16
- return knex.schema.alterTable('subscriptions', table => {
17
- table.string('publicKey').notNullable().alter();
18
- });
19
16
  };
@@ -55,7 +55,7 @@ export default class Release extends Model {
55
55
  }
56
56
 
57
57
  const connection = new anchor.web3.Connection(process.env.SOLANA_CLUSTER_URL);
58
- const provider = new anchor.AnchorProvider(connection, {}, {commitment: 'processed'})
58
+ const provider = new anchor.AnchorProvider(connection, {}, {commitment: 'confirmed'})
59
59
  const program = await anchor.Program.at(
60
60
  process.env.NINA_PROGRAM_ID,
61
61
  provider,
@@ -14,7 +14,6 @@ class Subscription extends Model {
14
14
  type: 'object',
15
15
  required: ['datetime'],
16
16
  properties: {
17
- publicKey: { type: 'string' },
18
17
  datetime: { type: 'string' },
19
18
  from: { type: 'string' },
20
19
  to: { type: 'string' },
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+
7
+ };
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
13
+ exports.down = function(knex) {
14
+
15
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+
7
+ };
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
13
+ exports.down = function(knex) {
14
+
15
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+
7
+ };
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
13
+ exports.down = function(knex) {
14
+
15
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+
7
+ };
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
13
+ exports.down = function(knex) {
14
+
15
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+
7
+ };
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
13
+ exports.down = function(knex) {
14
+
15
+ };