Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
03539fc0
Commit
03539fc0
authored
Feb 28, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a little bug in thermostats table creation script
parent
11da4ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
98_clima.sql
Databases/createdb/98_clima.sql
+4
-3
No files found.
Databases/createdb/98_clima.sql
View file @
03539fc0
...
...
@@ -47,9 +47,6 @@ CREATE TABLE IF NOT EXISTS `thermostats_progs` (
KEY
`active`
(
`day`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
AUTO_INCREMENT
=
1
;
ALTER
TABLE
`thermostats_progs`
ADD
CONSTRAINT
`thermostats_progs_ibfk_1`
FOREIGN
KEY
(
`thermostat_name`
)
REFERENCES
`thermostats`
(
`name`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
;
CREATE
TABLE
IF
NOT
EXISTS
`thermostats`
(
`id`
bigint
(
20
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
...
@@ -70,3 +67,7 @@ CREATE TABLE IF NOT EXISTS `thermostats` (
KEY
`function`
(
`function`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
AUTO_INCREMENT
=
2
;
ALTER
TABLE
`thermostats_progs`
ADD
CONSTRAINT
`thermostats_progs_ibfk_1`
FOREIGN
KEY
(
`thermostat_name`
)
REFERENCES
`thermostats`
(
`name`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment