@abtnode/models 1.16.8-next-ee2c4046 → 1.16.8-next-ce3ef4cf
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,13 @@
|
|
|
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
|
+
await context.bulkUpdate('sites', { port: 8088 }, { domain: '127.0.0.1' });
|
|
8
|
+
};
|
|
9
|
+
exports.up = up;
|
|
10
|
+
const down = async ({ context }) => {
|
|
11
|
+
await context.removeColumn('sites', 'port');
|
|
12
|
+
};
|
|
13
|
+
exports.down = down;
|
package/lib/models/site.d.ts
CHANGED
package/lib/models/site.js
CHANGED
|
@@ -7,8 +7,14 @@ 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,
|
|
14
|
+
// This column is added in migration script
|
|
15
|
+
// port: {
|
|
16
|
+
// type: DataTypes.INTEGER,
|
|
17
|
+
// },
|
|
12
18
|
}, {
|
|
13
19
|
sequelize,
|
|
14
20
|
modelName: 'Site',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/models",
|
|
3
|
-
"version": "1.16.8-next-
|
|
3
|
+
"version": "1.16.8-next-ce3ef4cf",
|
|
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-
|
|
36
|
-
"@abtnode/types": "1.16.8-next-
|
|
35
|
+
"@abtnode/logger": "1.16.8-next-ce3ef4cf",
|
|
36
|
+
"@abtnode/types": "1.16.8-next-ce3ef4cf",
|
|
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": "
|
|
57
|
+
"gitHead": "82b041a2c08a097de43dd0de0453caf109400eff"
|
|
59
58
|
}
|