@abtnode/models 1.16.8-next-3bbab13f → 1.16.8-next-ca7267f0
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,6 +4,7 @@ exports.down = exports.up = void 0;
|
|
|
4
4
|
const sequelize_1 = require("sequelize");
|
|
5
5
|
const up = async ({ context }) => {
|
|
6
6
|
await context.addColumn('sites', 'port', { type: sequelize_1.DataTypes.INTEGER });
|
|
7
|
+
await context.bulkUpdate('sites', { port: 8088 }, { domain: '127.0.0.1' });
|
|
7
8
|
};
|
|
8
9
|
exports.up = up;
|
|
9
10
|
const down = async ({ context }) => {
|
package/lib/models/site.js
CHANGED
|
@@ -7,10 +7,12 @@ function createSiteModel() {
|
|
|
7
7
|
var _a;
|
|
8
8
|
return _a = class Site extends sequelize_1.Model {
|
|
9
9
|
static initialize(sequelize) {
|
|
10
|
-
this.init(
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
{
|
|
10
|
+
this.init({
|
|
13
11
|
...this.GENESIS_ATTRIBUTES,
|
|
12
|
+
// This column is added in migration script
|
|
13
|
+
port: {
|
|
14
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
15
|
+
},
|
|
14
16
|
}, {
|
|
15
17
|
sequelize,
|
|
16
18
|
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-ca7267f0",
|
|
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-ca7267f0",
|
|
36
|
+
"@abtnode/types": "1.16.8-next-ca7267f0",
|
|
37
37
|
"@nedb/core": "^2.1.5",
|
|
38
38
|
"lodash.clonedeep": "^4.5.0",
|
|
39
39
|
"lodash.get": "^4.4.2",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"typescript": "^5.0.4"
|
|
55
55
|
},
|
|
56
56
|
"resolutions": {},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "cb9873c5a351b114f0494971b88018d34a61a125"
|
|
58
58
|
}
|