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
3399d3f4
Commit
3399d3f4
authored
5 months ago
by
Joost Hemmen
Browse files
Options
Downloads
Patches
Plain Diff
add configuration_contact_role.id, .role_uri and .role_name
parent
a120e7fa
No related branches found
No related tags found
1 merge request
!214
Resolve "update sms foreign and mock tables"
Pipeline
#457580
failed
5 months ago
Stage: integration
Stage: end-to-end
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postgres/sms_db/sms_foreign_tables.sql
+33
-30
33 additions, 30 deletions
postgres/sms_db/sms_foreign_tables.sql
with
33 additions
and
30 deletions
postgres/sms_db/sms_foreign_tables.sql
+
33
−
30
View file @
3399d3f4
...
...
@@ -16,18 +16,21 @@ CREATE FOREIGN TABLE IF NOT EXISTS public.sms_configuration (
id
integer
not
null
,
label
varchar
(
256
),
description
text
,
persistent_identifier
varchar
(
256
),
persistent_identifier
varchar
(
256
),
status
varchar
(
256
),
project
varchar
(
256
),
is_internal
boolean
,
is_public
boolean
is_internal
boolean
,
is_public
boolean
)
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'configuration'
);
CREATE
FOREIGN
TABLE
IF
NOT
EXISTS
public
.
sms_configuration_contact_role
(
id
integer
not
null
,
configuration_id
integer
not
null
,
contact_id
integer
not
null
contact_id
integer
not
null
,
role_uri
varchar
(
256
)
not
null
,
role_name
varchar
(
256
)
not
null
,
)
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'configuration_contact_role'
);
...
...
@@ -63,16 +66,16 @@ CREATE FOREIGN TABLE IF NOT EXISTS public.sms_configuration_static_location_begi
CREATE
FOREIGN
TABLE
IF
NOT
EXISTS
public
.
sms_device
(
id
integer
not
null
,
short_name
varchar
(
256
),
description
text
,
device_type_name
varchar
(
256
),
manufacturer_name
varchar
(
256
),
model
varchar
(
256
),
serial_number
varchar
(
256
),
persistent_identifier
varchar
(
256
),
is_internal
boolean
,
is_public
boolean
id
integer
not
null
,
short_name
varchar
(
256
),
description
text
,
device_type_name
varchar
(
256
),
manufacturer_name
varchar
(
256
),
model
varchar
(
256
),
serial_number
varchar
(
256
),
persistent_identifier
varchar
(
256
),
is_internal
boolean
,
is_public
boolean
)
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'device'
);
...
...
@@ -108,22 +111,6 @@ CREATE FOREIGN TABLE IF NOT EXISTS public.sms_device_property (
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'device_property'
);
CREATE
FOREIGN
TABLE
IF
NOT
EXISTS
public
.
sms_datastream_link
(
id
integer
not
null
,
thing_id
uuid
,
device_property_id
integer
not
null
,
device_mount_action_id
integer
not
null
,
datasource_id
varchar
(
256
),
datastream_id
integer
not
null
,
begin_date
timestamp
with
time
zone
,
end_date
timestamp
with
time
zone
,
aggregation_period
double
precision
,
license_uri
varchar
(
256
),
license_name
varchar
(
256
)
)
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'datastream_link'
);
CREATE
FOREIGN
TABLE
IF
NOT
EXISTS
public
.
sms_device_contact_role
(
id
integer
not
null
,
role_uri
varchar
(
256
)
not
null
,
...
...
@@ -134,4 +121,20 @@ CREATE FOREIGN TABLE IF NOT EXISTS public.sms_device_contact_role (
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'device_contact_role'
);
CREATE
FOREIGN
TABLE
IF
NOT
EXISTS
public
.
sms_datastream_link
(
id
integer
not
null
,
thing_id
uuid
,
device_property_id
integer
not
null
,
device_mount_action_id
integer
not
null
,
datasource_id
varchar
(
256
),
datastream_id
integer
not
null
,
begin_date
timestamp
with
time
zone
,
end_date
timestamp
with
time
zone
,
aggregation_period
double
precision
,
license_uri
varchar
(
256
),
license_name
varchar
(
256
)
)
SERVER
sms_db
OPTIONS
(
schema_name
'public'
,
table_name
'datastream_link'
);
COMMIT
;
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