Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IoT Platform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IoT
IoT Platform
Merge requests
!19
Resolve "Fixes for standalone development"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Fixes for standalone development"
38-fixes-for-standalone-development
into
main
Overview
0
Commits
8
Changes
1
Merged
Rodrigo Gonçalves
requested to merge
38-fixes-for-standalone-development
into
main
6 months ago
Overview
0
Commits
8
Changes
1
Expand
Related to
#38 (closed)
Edited
6 months ago
by
Rodrigo Gonçalves
0
0
Merge request reports
Viewing commit
1cf6c090
Prev
Next
Show latest version
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1cf6c090
Fixes for missing SQL in table creation in mysql
· 1cf6c090
Rodrigo Goncalves
authored
6 months ago
docker/db/02-smartdata_v1.sql
+
9
−
0
Options
@@ -34,6 +34,11 @@ CREATE TABLE `series` (
`workflow`
int
unsigned
NOT
NULL
DEFAULT
'0'
,
`domain`
varchar
(
48
)
NOT
NULL
DEFAULT
'public'
,
`updated_at`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`type`
char
(
3
)
DEFAULT
'OLD'
,
`period`
bigint
(
20
)
DEFAULT
0
,
`event`
varchar
(
300
)
DEFAULT
NULL
,
`count`
int
(
11
)
DEFAULT
NULL
,
`uncertainty`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`uk_series`
(
`version`
,
`unit`
,
`x`
,
`y`
,
`z`
,
`r`
,
`dev`
,
`t0`
,
`t1`
,
`workflow`
,
`domain`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
@@ -77,6 +82,10 @@ CREATE TABLE `trackers` (
`domain`
varchar
(
48
)
NOT
NULL
DEFAULT
'public'
,
`row_id`
bigint
unsigned
NOT
NULL
,
`updated_at`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`type`
char
(
3
)
DEFAULT
'OLD'
,
`period`
bigint
(
20
)
DEFAULT
0
,
`event`
varchar
(
300
)
DEFAULT
NULL
,
`uncertainty`
int
(
11
)
DEFAULT
0
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`uk_trackers`
(
`version`
,
`unit`
,
`signature`
,
`t0`
,
`t1`
,
`dev`
,
`workflow`
,
`domain`
,
`row_id`
)
Loading