Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsm-orchestration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UFZ TSM
tsm-orchestration
Commits
acfc03ab
Commit
acfc03ab
authored
9 months ago
by
Florian Gransee
Browse files
Options
Downloads
Patches
Plain Diff
Add schema thing mapping table
parent
0dd80778
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!169
Add schema thing mapping table
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+3
-2
3 additions, 2 deletions
docker-compose.yml
migrations/init_schema_thing_mapping.sh
+11
-0
11 additions, 0 deletions
migrations/init_schema_thing_mapping.sh
with
14 additions
and
2 deletions
docker-compose.yml
+
3
−
2
View file @
acfc03ab
...
...
@@ -93,6 +93,7 @@ services:
-
"
./data/postgres/sms_cv_db/sms_cv_foreign_tables.sql:/sql/sms_cv/sms_cv_foreign_tables.sql"
-
"
./data/postgres/sms_cv_db/sms_cv_init_tables.sh:/docker-entrypoint-initdb.d/02_sms_cv_init_tables.sh"
-
"
./data/postgres/postgis.sh:/docker-entrypoint-initdb.d/03_postgis.sh"
-
"
./migrations/init_schema_thing_mapping.sh:/docker-entrypoint-initdb.d/04_schema_thing_mapping.sh"
-
"
./mosquitto/mosquitto-go-auth.sh:/docker-entrypoint-initdb.d/mosquitto-go-auth.sh:ro"
-
"
./frontend/frontend-database.sh:/docker-entrypoint-initdb.d/frontend-database.sh:ro"
-
"
./dispatcher/s3_to_db.sh:/docker-entrypoint-initdb.d/s3_to_db.sh:ro"
...
...
@@ -106,7 +107,7 @@ services:
test
:
[
"
CMD-SHELL"
,
"
pg_isready
-U
$POSTGRES_USER"
]
interval
:
"
${POSTGRES_HEALTHCHECK_INTERVAL}"
timeout
:
5s
retries
:
5
retries
:
10
# Summary
# =======
...
...
@@ -245,7 +246,7 @@ services:
--id
docker-compose-healthcheck"
]
interval
:
"
${MQTT_BROKER_HEALTHCHECK_INTERVAL}"
timeout
:
10s
retries
:
6
retries
:
12
logging
:
options
:
max-size
:
"
${MQTT_BROKER_LOG_SIZE}"
...
...
This diff is collapsed.
Click to expand it.
migrations/init_schema_thing_mapping.sh
0 → 100755
+
11
−
0
View file @
acfc03ab
#!/bin/bash
set
-e
echo
'Create schema-thing-mapping table if not exists'
psql
-v
ON_ERROR_STOP
=
1
-U
"
$POSTGRES_USER
"
<<-
EOSQL
CREATE TABLE IF NOT EXISTS public."schema_thing_mapping"(
"schema" VARCHAR(100) NOT NULL,
"thing_uuid" UUID NOT NULL,
UNIQUE("schema", "thing_uuid"));
EOSQL
echo
'schema-thing-mapping table created'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment