-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'un identifiant définitif non-éditable à la création d'une org…
…anisation (#52) Co-authored-by: Arnaud Ambroselli <[email protected]>
- Loading branch information
1 parent
4c8e184
commit b1babcf
Showing
4 changed files
with
33 additions
and
7 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
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,14 @@ | ||
"use strict"; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up(queryInterface) { | ||
await queryInterface.sequelize.query('ALTER TABLE "mano"."Organisation" ADD COLUMN "orgId" TEXT;'); | ||
|
||
await queryInterface.sequelize.query('UPDATE "mano"."Organisation" SET "orgId" = "name";'); | ||
}, | ||
|
||
async down(queryInterface) { | ||
await queryInterface.sequelize.query('ALTER TABLE "mano"."Organisation" DROP COLUMN "orgId";'); | ||
}, | ||
}; |
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