-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ce0a36
commit 2e84e78
Showing
2 changed files
with
71 additions
and
19 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,52 @@ | ||
/** | ||
* Copyright (c) 2017, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
'use strict'; | ||
const u = require('../db/helpers/roomTypeUtils'); | ||
const TBL = 'RoomTypes'; | ||
|
||
module.exports = { | ||
up: function (qi, Sequelize) { | ||
/* | ||
Add altering commands here. | ||
Return a promise to correctly handle asynchronicity. | ||
Example: | ||
return queryInterface.createTable('users', { id: Sequelize.INTEGER }); | ||
*/ | ||
return qi.sequelize.transaction(() => | ||
qi.sequelize.query('UPDATE "Profiles" SET "aspectAccess" = \'rw\'' + | ||
', "lensAccess" = \'rw\'' + | ||
', "perspectiveAccess" = \'rw\'' + | ||
', "sampleAccess" = \'rw\'' + | ||
', "subjectAccess" = \'rw\'' + | ||
', "userAccess" = \'rw\'' + | ||
' WHERE "name" = \'RefocusUser\';' | ||
) | ||
); | ||
}, | ||
|
||
down: function (qi, Sequelize) { | ||
/* | ||
Add reverting commands here. | ||
Return a promise to correctly handle asynchronicity. | ||
Example: | ||
return queryInterface.dropTable('users'); | ||
*/ | ||
return qi.sequelize.transaction(() => | ||
qi.sequelize.query('UPDATE "Profiles" SET "aspectAccess" = \'r\'' + | ||
', "lensAccess" = \'r\'' + | ||
', "perspectiveAccess" = \'r\'' + | ||
', "sampleAccess" = \'r\'' + | ||
', "subjectAccess" = \'r\'' + | ||
', "userAccess" = \'r\'' + | ||
' WHERE "name" = \'RefocusUser\';' | ||
) | ||
); | ||
}, | ||
}; |