@abtnode/models 1.16.21-beta-445a8baa → 1.16.21-beta-2e75c75c

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.up = void 0;
3
+ exports.down = exports.up = void 0;
4
4
  const models_1 = require("../../models");
5
5
  const models = (0, models_1.getBlockletModels)();
6
6
  // eslint-disable-next-line import/prefer-default-export
@@ -8,3 +8,7 @@ const up = async ({ context }) => {
8
8
  await context.createTable('notifications', models.Notification.GENESIS_ATTRIBUTES);
9
9
  };
10
10
  exports.up = up;
11
+ const down = async ({ context }) => {
12
+ await context.dropTable('notifications');
13
+ };
14
+ exports.down = down;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.21-beta-445a8baa",
3
+ "version": "1.16.21-beta-2e75c75c",
4
4
  "description": "Sequelize models for blocklet server and blocklet service",
5
5
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
6
  "publishConfig": {
@@ -32,8 +32,8 @@
32
32
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/logger": "1.16.21-beta-445a8baa",
36
- "@abtnode/types": "1.16.21-beta-445a8baa",
35
+ "@abtnode/logger": "1.16.21-beta-2e75c75c",
36
+ "@abtnode/types": "1.16.21-beta-2e75c75c",
37
37
  "lodash.clonedeep": "^4.5.0",
38
38
  "lodash.isempty": "^4.4.0",
39
39
  "sequelize": "^6.35.0",
@@ -52,5 +52,5 @@
52
52
  "typescript": "^5.0.4"
53
53
  },
54
54
  "resolutions": {},
55
- "gitHead": "7a7ff8be7f424775c3bde0eead773d8e6177fa1a"
55
+ "gitHead": "1fca0b58e1ed4f7a9bb268829a7c84290a01c89d"
56
56
  }