You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when running npm run-script migrate_db and dialect postgres, the script will fail on 20210603073911-hashed-access-tokens.
I fixed it by applying the following change:
diff --git a/migrations/20210603073911-hashed-access-tokens.js b/migrations/20210603073911-hashed-access-tokens.js
index 33fbbaef..3e862d3b 100644
--- a/migrations/20210603073911-hashed-access-tokens.js
+++ b/migrations/20210603073911-hashed-access-tokens.js
@@ -23,9 +23,7 @@ module.exports = {
}));
}).then(() => {
// Remove access_token as primary key
- return queryInterface.removeConstraint('oauth_access_token', 'access_token');
- }).then(() => {
- return queryInterface.removeConstraint('oauth_access_token', 'PRIMARY');
+ return queryInterface.removeConstraint('oauth_access_token', 'oauth_access_token_pkey')
}).then(() => {
// Now that the access_token column is not a primary key
// use an unlimited text column so JWT can be store without any problem
The text was updated successfully, but these errors were encountered:
Hi, when running
npm run-script migrate_db
and dialect postgres, the script will fail on20210603073911-hashed-access-tokens
.I fixed it by applying the following change:
The text was updated successfully, but these errors were encountered: