Skip to content

Commit

Permalink
fix: onChainConfirmationTimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Mar 12, 2022
1 parent 9b1d35e commit fc23d6d
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"release": "./node_modules/.bin/standard-version && git push --tags",
"postinstall": "npm run requirements-check",
"resetdb": "rm -f ./data.sqlite3 && npx sequelize-cli db:seed:all --debug --env local",
"cleandb": "rm -f ./data.sqlite3",
"cleandb": "rm -f ~/.chia/climate-warehouse/data.sqlite3",
"resetTestDb": "rm -f ./test.sqlite3 && rm -f ./testMirror.sqlite3",
"resetMirrorDb": "npx sequelize-cli db:drop --env mirror && npx sequelize-cli db:create --env mirror && npx sequelize-cli db:migrate --env mirror --debug",
"prepare": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion src/database/migrations/20211201194416-create-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
require: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
relationshipType: Sequelize.STRING,
registry: Sequelize.STRING,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/database/migrations/20211201194541-create-issuance.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/database/migrations/20211201194652-create-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
},
ratingLink: Sequelize.STRING,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
4 changes: 2 additions & 2 deletions src/database/migrations/20211201195550-create-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
required: true,
},
projectLink: {
type: Sequelize.STRING,
type: Sequelize.STRING(1000),
required: true,
},
projectDeveloper: {
Expand Down Expand Up @@ -86,7 +86,7 @@ export default {
validationBody: Sequelize.STRING,
validationDate: Sequelize.DATE,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/audit/audit.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
allowNull: true,
},
onchainConfirmationTimeStamp: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
required: true,
allowNull: false,
},
Expand Down
2 changes: 1 addition & 1 deletion src/models/co-benefits/co-benefits.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/estimations/estimations.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/issuances/issuances.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/labelUnits/labelUnits.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/labels/labels.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
require: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/locations/locations.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
4 changes: 2 additions & 2 deletions src/models/projects/projects.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
required: true,
},
projectLink: {
type: Sequelize.STRING,
type: Sequelize.STRING(1000),
required: true,
},
projectDeveloper: {
Expand Down Expand Up @@ -83,7 +83,7 @@ module.exports = {
validationBody: Sequelize.STRING,
validationDate: Sequelize.DATE,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/ratings/ratings.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
},
ratingLink: Sequelize.STRING,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
relationshipType: Sequelize.STRING,
registry: Sequelize.STRING,
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down
2 changes: 1 addition & 1 deletion src/models/units/units.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = {
required: true,
},
timeStaged: {
type: 'TIMESTAMP',
type: Sequelize.STRING,
},
createdAt: {
type: Sequelize.DATE,
Expand Down

0 comments on commit fc23d6d

Please sign in to comment.