Skip to content

Commit fbbebc9

Browse files
committed
[db] Create authorization db, if not exists
1 parent 5b46397 commit fbbebc9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2+
-- Licensed under the GNU Affero General Public License (AGPL). See License.AGPL.txt in the project root for license information.
3+
4+
-- must be idempotent
5+
CREATE DATABASE IF NOT EXISTS `authorization` CHARSET utf8mb4;
6+
7+
USE `authorization`;
8+
9+
-- Grant privileges
10+
GRANT ALL ON `authorization`.* TO "__GITPOD_USERNAME__"@"%";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2+
-- Licensed under the GNU Affero General Public License (AGPL). See License.AGPL.txt in the project root for license information.
3+
4+
-- must be idempotent
5+
CREATE DATABASE IF NOT EXISTS `authorization` CHARSET utf8mb4;

0 commit comments

Comments
 (0)