@abtnode/models 1.16.8-next-da13616b → 1.16.8-next-3bbab13f

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,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.down = exports.up = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ const up = async ({ context }) => {
6
+ await context.addColumn('sites', 'port', { type: sequelize_1.DataTypes.INTEGER });
7
+ };
8
+ exports.up = up;
9
+ const down = async ({ context }) => {
10
+ await context.removeColumn('sites', 'port');
11
+ };
12
+ exports.down = down;
@@ -2,6 +2,7 @@ import { TRoutingSite } from '@abtnode/types';
2
2
  import { DynamicModel } from '../types';
3
3
  export type SiteState = TRoutingSite & {
4
4
  id: string;
5
+ port: number;
5
6
  createdAt: Date;
6
7
  updatedAt: Date;
7
8
  };
@@ -7,7 +7,9 @@ function createSiteModel() {
7
7
  var _a;
8
8
  return _a = class Site extends sequelize_1.Model {
9
9
  static initialize(sequelize) {
10
- this.init({
10
+ this.init(
11
+ // @ts-ignore
12
+ {
11
13
  ...this.GENESIS_ATTRIBUTES,
12
14
  }, {
13
15
  sequelize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.8-next-da13616b",
3
+ "version": "1.16.8-next-3bbab13f",
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.8-next-da13616b",
36
- "@abtnode/types": "1.16.8-next-da13616b",
35
+ "@abtnode/logger": "1.16.8-next-3bbab13f",
36
+ "@abtnode/types": "1.16.8-next-3bbab13f",
37
37
  "@nedb/core": "^2.1.5",
38
38
  "lodash.clonedeep": "^4.5.0",
39
39
  "lodash.get": "^4.4.2",
@@ -51,9 +51,8 @@
51
51
  "@typescript-eslint/parser": "^5.40.1",
52
52
  "jest": "^27.5.1",
53
53
  "ts-jest": "^27.1.5",
54
- "ts-node": "^10.9.1",
55
54
  "typescript": "^5.0.4"
56
55
  },
57
56
  "resolutions": {},
58
- "gitHead": "da59f038cde0760408501257e8af07358473e892"
57
+ "gitHead": "602f3a260894cb85b86f3e2e03e138f3ba2f6719"
59
58
  }