Skip to content

Commit 9a41289

Browse files
committed
chore: update dev demo setup table names
1 parent 9f0c06c commit 9a41289

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

dev-demo/inventory.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
environment:
1010
CLICKHOUSE_USER: demo
1111
CLICKHOUSE_PASSWORD: demo
12-
CLICKHOUSE_DB: demo
12+
CLICKHOUSE_DB: dev_demo
1313
ulimits:
1414
nproc: 65535
1515
nofile:
@@ -26,15 +26,15 @@ services:
2626
environment:
2727
POSTGRES_USER: demo
2828
POSTGRES_PASSWORD: demo
29-
POSTGRES_DB: demo
29+
POSTGRES_DB: dev_demo
3030
volumes:
3131
- pg-data:/var/lib/postgresql/data
3232

3333
mongo:
3434
image: mongo:6.0.5
3535
restart: always
3636
environment:
37-
MONGO_INITDB_DATABASE: demo
37+
MONGO_INITDB_DATABASE: dev_demo
3838
ports:
3939
- "27028:27017"
4040
volumes:
@@ -47,7 +47,7 @@ services:
4747
- "3307:3306"
4848
environment:
4949
MYSQL_ROOT_PASSWORD: demo
50-
MYSQL_DATABASE: demo
50+
MYSQL_DATABASE: dev_demo
5151
MYSQL_USER: demo
5252
MYSQL_PASSWORD: demo
5353
volumes:
@@ -62,7 +62,7 @@ services:
6262
- KEYCLOAK_ADMIN_PASSWORD=admin
6363
- DB_VENDOR=postgres
6464
- DB_ADDR=pg
65-
- DB_DATABASE=demo
65+
- DB_DATABASE=dev_demo
6666
- DB_USER=demo
6767
- DB_PASSWORD=demo
6868
ports:
@@ -83,7 +83,7 @@ services:
8383
sleep 2
8484
done
8585
86-
mysql -h mysql -P 3306 -u root -pdemo -e 'CREATE DATABASE IF NOT EXISTS demo;'
86+
mysql -h mysql -P 3306 -u root -pdemo -e 'CREATE DATABASE IF NOT EXISTS dev_demo;'
8787
mysql -h mysql -P 3306 -u root -pdemo -e \"CREATE USER IF NOT EXISTS 'demo'@'%' IDENTIFIED BY 'demo';\"
8888
mysql -h mysql -P 3306 -u root -pdemo -e \"GRANT CREATE, ALTER, DROP, REFERENCES ON *.* TO 'demo'@'%';\"
8989
mysql -h mysql -P 3306 -u root -pdemo -e 'FLUSH PRIVILEGES;'

dev-demo/migrations/prisma/mysql/prisma.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { defineConfig, env } from 'prisma/config'
33

44
export default defineConfig({
55
datasource: {
6-
url: 'mysql://demo:demo@localhost:3307/demo',
6+
url: 'mysql://demo:demo@localhost:3307/dev_demo',
77
},
88
})

dev-demo/migrations/prisma/mysql/schema.mysql.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ generator client {
44

55
datasource mysql_db {
66
provider = "mysql"
7-
url = "mysql://demo:demo@localhost:3307/demo"
7+
url = "mysql://demo:demo@localhost:3307/dev_demo"
88
}
99

1010
model cars {

dev-demo/migrations/prisma/postgres/schema.postgres.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ generator client {
44

55
datasource mysql_db {
66
provider = "postgres"
7-
url = "postgres://demo:demo@localhost:53321/demo"
7+
url = "postgres://demo:demo@localhost:53321/dev_demo"
88
}
99

1010
model cars {

0 commit comments

Comments
 (0)