Skip to content

Commit

Permalink
Merge pull request #142 from NodeFactoryIo/fix/model-migrations
Browse files Browse the repository at this point in the history
Fix/model migrations
  • Loading branch information
morrigan authored Apr 7, 2020
2 parents 08c579c + e160055 commit 15d8a0e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Migrations/20191110125455-create-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
type: sequelize.STRING
},
hash_password: {
type: sequelize.STRING(128)
type: sequelize.STRING
},
createdAt: {
allowNull: false,
Expand Down
6 changes: 3 additions & 3 deletions src/Migrations/20191224091606-create-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ module.exports = {
type: sequelize.INTEGER
},
url: {
type: sequelize.STRING(128)
type: sequelize.STRING
},
token: {
type: sequelize.STRING(150)
type: sequelize.STRING
},
address: {
type: sequelize.STRING(128)
type: sequelize.STRING
},
userId: {
type: sequelize.INTEGER,
Expand Down
2 changes: 1 addition & 1 deletion src/Migrations/20200129194920-create-general-miner-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
type: sequelize.INTEGER
},
version: {
type: sequelize.STRING(25)
type: sequelize.STRING
},
walletAddress: {
type: sequelize.STRING
Expand Down
2 changes: 1 addition & 1 deletion src/Models/GeneralMinerInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class GeneralMinerInfo extends Model {
public static initialize(sequelize: Sequelize) {
this.init({
version: {
type: DataTypes.STRING(25),
type: DataTypes.STRING,
allowNull: false,
},
walletAddress: {
Expand Down
6 changes: 3 additions & 3 deletions src/Models/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export class Node extends Model implements INode {
public static initialize(sequelize: Sequelize) {
this.init({
url: {
type: DataTypes.STRING(128),
type: DataTypes.STRING,
allowNull: false,
},
token: {
type: DataTypes.STRING(150),
type: DataTypes.STRING,
allowNull: false,
},
address: {
type: DataTypes.STRING(128),
type: DataTypes.STRING,
allowNull: false,
},
name: {
Expand Down
2 changes: 1 addition & 1 deletion src/Models/UserModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class UserModel extends Model implements User {
},
// eslint-disable-next-line
hash_password: {
type: DataTypes.STRING(128),
type: DataTypes.STRING,
allowNull: false,
},
} as ModelAttributes,
Expand Down

0 comments on commit 15d8a0e

Please sign in to comment.