Skip to content

Commit

Permalink
Merge pull request #523 from jsdelivr/dash-db
Browse files Browse the repository at this point in the history
refactor: rename dash DB
  • Loading branch information
MartinKolarik authored Jun 3, 2024
2 parents f6455cc + 377900c commit 0a32c56
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
ports:
- 13306:3306
env:
MARIADB_DATABASE: directus-test
MARIADB_DATABASE: dashboard-globalping-test
MARIADB_USER: directus
MARIADB_PASSWORD: password
MARIADB_RANDOM_ROOT_PASSWORD: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
ports:
- 13306:3306
env:
MARIADB_DATABASE: directus-test
MARIADB_DATABASE: dashboard-globalping-test
MARIADB_USER: directus
MARIADB_PASSWORD: password
MARIADB_RANDOM_ROOT_PASSWORD: 1
Expand Down
12 changes: 8 additions & 4 deletions config/create-dbs.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CREATE DATABASE IF NOT EXISTS directus;
GRANT ALL PRIVILEGES ON directus.* to 'directus'@'%';
CREATE DATABASE IF NOT EXISTS `dashboard-globalping`;
GRANT ALL PRIVILEGES ON `dashboard-globalping`.* to 'directus'@'%';

CREATE DATABASE IF NOT EXISTS `directus-test`;
GRANT ALL PRIVILEGES ON `directus-test`.* to 'directus'@'%';
CREATE DATABASE IF NOT EXISTS `dashboard-globalping-test`;
GRANT ALL PRIVILEGES ON `dashboard-globalping-test`.* to 'directus'@'%';

-- Directus issue https://github.com/directus/directus/discussions/11786
ALTER DATABASE `dashboard-globalping` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER DATABASE `dashboard-globalping-test` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
2 changes: 1 addition & 1 deletion config/default.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
host: 'localhost',
user: 'directus',
password: 'password',
database: 'directus',
database: 'dashboard-globalping',
port: 3306,
},
},
Expand Down
2 changes: 1 addition & 1 deletion config/test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
db: {
connection: {
port: 13306,
database: 'directus-test',
database: 'dashboard-globalping-test',
multipleStatements: true,
},
},
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
mariadb:
image: mariadb:10.11.5
environment:
- MARIADB_DATABASE=directus
- MARIADB_DATABASE=dashboard-globalping
- MARIADB_USER=directus
- MARIADB_PASSWORD=password
- MARIADB_ROOT_PASSWORD=root
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cases/dns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('dns mesurement', () => {
type: 'dns',
target: 'www.jsdelivr.com',
measurementOptions: {
resolver: '113.24.166.134',
resolver: '101.109.234.248',
},
},
throwHttpErrors: false,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cases/http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('http mesurement', () => {
target: 'www.jsdelivr.com',
type: 'http',
measurementOptions: {
resolver: '113.24.166.134',
resolver: '101.109.234.248',
},
}, throwHttpErrors: false });

Expand Down

0 comments on commit 0a32c56

Please sign in to comment.