Skip to content

Commit 15d8a0e

Browse files
authored
Merge pull request #142 from NodeFactoryIo/fix/model-migrations
Fix/model migrations
2 parents 08c579c + e160055 commit 15d8a0e

6 files changed

+10
-10
lines changed

src/Migrations/20191110125455-create-user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
type: sequelize.STRING
1414
},
1515
hash_password: {
16-
type: sequelize.STRING(128)
16+
type: sequelize.STRING
1717
},
1818
createdAt: {
1919
allowNull: false,

src/Migrations/20191224091606-create-node.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ module.exports = {
1010
type: sequelize.INTEGER
1111
},
1212
url: {
13-
type: sequelize.STRING(128)
13+
type: sequelize.STRING
1414
},
1515
token: {
16-
type: sequelize.STRING(150)
16+
type: sequelize.STRING
1717
},
1818
address: {
19-
type: sequelize.STRING(128)
19+
type: sequelize.STRING
2020
},
2121
userId: {
2222
type: sequelize.INTEGER,

src/Migrations/20200129194920-create-general-miner-info.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
type: sequelize.INTEGER
1111
},
1212
version: {
13-
type: sequelize.STRING(25)
13+
type: sequelize.STRING
1414
},
1515
walletAddress: {
1616
type: sequelize.STRING

src/Models/GeneralMinerInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class GeneralMinerInfo extends Model {
1414
public static initialize(sequelize: Sequelize) {
1515
this.init({
1616
version: {
17-
type: DataTypes.STRING(25),
17+
type: DataTypes.STRING,
1818
allowNull: false,
1919
},
2020
walletAddress: {

src/Models/Node.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export class Node extends Model implements INode {
2525
public static initialize(sequelize: Sequelize) {
2626
this.init({
2727
url: {
28-
type: DataTypes.STRING(128),
28+
type: DataTypes.STRING,
2929
allowNull: false,
3030
},
3131
token: {
32-
type: DataTypes.STRING(150),
32+
type: DataTypes.STRING,
3333
allowNull: false,
3434
},
3535
address: {
36-
type: DataTypes.STRING(128),
36+
type: DataTypes.STRING,
3737
allowNull: false,
3838
},
3939
name: {

src/Models/UserModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class UserModel extends Model implements User {
2121
},
2222
// eslint-disable-next-line
2323
hash_password: {
24-
type: DataTypes.STRING(128),
24+
type: DataTypes.STRING,
2525
allowNull: false,
2626
},
2727
} as ModelAttributes,

0 commit comments

Comments
 (0)