-
Notifications
You must be signed in to change notification settings - Fork 7
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 #890 from UniversityOfHelsinkiCS/trunk
Enable 'show oodikone as this user' button + remove legacy columns from user db
- Loading branch information
Showing
9 changed files
with
168 additions
and
53 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
7 changes: 7 additions & 0 deletions
7
services/oodikone2-userservice/src/database/migrations/20190514_00_remove_is_enabled.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,7 @@ | ||
module.exports = { | ||
up: async (queryInterface) => { | ||
await queryInterface.removeColumn('users', 'is_enabled') | ||
}, | ||
down: async () => { | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...oodikone2-userservice/src/database/migrations/20190514_01_remove_admin_czar_from_users.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,8 @@ | ||
module.exports = { | ||
up: async (queryInterface) => { | ||
await queryInterface.removeColumn('users', 'czar') | ||
await queryInterface.removeColumn('users', 'admin') | ||
}, | ||
down: async () => { | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,27 +23,21 @@ const default_users = [ | |
full_name: 'Pekka Pouta', | ||
username: 'poutaukko', | ||
email: '[email protected]', | ||
language: 'finnish', | ||
admin: false, | ||
czar: false | ||
language: 'finnish' | ||
}, | ||
{ | ||
id: 666, | ||
full_name: 'Sylvester Stallone', | ||
username: 'rambo666', | ||
email: '[email protected]', | ||
language: 'americano', | ||
admin: false, | ||
czar: true | ||
language: 'americano' | ||
}, | ||
{ | ||
id: 665, | ||
full_name: 'Morgan Freeman', | ||
username: 'freeman', | ||
email: '[email protected]', | ||
language: 'americano', | ||
admin: false, | ||
czar: false | ||
language: 'americano' | ||
} | ||
] | ||
|
||
|
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