-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #383 from Open-Earth-Foundation/feature/new-data-flow
Feature/new data flow
- Loading branch information
Showing
20 changed files
with
736 additions
and
102 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
app/migrations/20240314122321-add_scope_and_subsector_to_userfile.cjs
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,20 @@ | ||
'use strict'; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up (queryInterface, Sequelize) { | ||
await queryInterface.addColumn('UserFile', 'scopes', { | ||
type: Sequelize.ARRAY(Sequelize.STRING), | ||
allowNull: true | ||
}) | ||
await queryInterface.addColumn('UserFile', 'subsectors', { | ||
type: Sequelize.ARRAY(Sequelize.STRING), | ||
allowNull: true | ||
}) | ||
}, | ||
|
||
async down (queryInterface, Sequelize) { | ||
await queryInterface.removeColumn('UserFile', 'scopes'); | ||
await queryInterface.removeColumn('UserFile', 'subsectors') | ||
} | ||
}; |
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
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
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
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
Oops, something went wrong.