-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: backend connecting userPubkey & userGuid (#147)
- Loading branch information
Showing
3 changed files
with
71 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
neurofusion/server/migrations/20230831135502-switch-usermetadata-to-npub.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use strict"; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
|
||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
/** | ||
* Add altering commands here. | ||
* | ||
* Example: | ||
* await queryInterface.createTable('users', { id: Sequelize.INTEGER }); | ||
*/ | ||
await queryInterface.changeColumn("UserMetadata", "userEmail", { | ||
allowNull: true, | ||
}); | ||
await queryInterface.addColumn("UserMetadata", "userPubkey", { | ||
type: Sequelize.STRING, | ||
allowNull: true, | ||
unique: true, | ||
}); | ||
await queryInterface.removeColumn("UserMetadata", "magicLinkAuthToken"); | ||
await queryInterface.removeColumn("UserMetadata", "neurosityToken"); | ||
await queryInterface.removeColumn("UserMetadata", "magicflowToken"); | ||
await queryInterface.removeColumn("UserMetadata", "magicflowLastFetched"); | ||
}, | ||
|
||
async down(queryInterface, Sequelize) { | ||
/** | ||
* Add reverting commands here. | ||
* | ||
* Example: | ||
* await queryInterface.dropTable('users'); | ||
*/ | ||
await queryInterface.removeColumn("UserMetadata", "userNpub"); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c74d74b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
fusion – ./neurofusion/next-client
fusion-neurofusion-research-inc.vercel.app
fusion-git-master-neurofusion-research-inc.vercel.app
usefusion.app
www.usefusion.app