Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
baa79753
Commit
baa79753
authored
Dec 27, 2012
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SQLite): немного откорректировал реализацию DBServer_SQLite
parent
98a8f9f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
create_db.sh
extensions/DBServer-SQLite/create_db.sh
+32
-1
No files found.
extensions/DBServer-SQLite/create_db.sh
View file @
baa79753
...
@@ -25,7 +25,38 @@ INSERT INTO main_history VALUES(NULL,0,0,0,105,20.3,1,0);
...
@@ -25,7 +25,38 @@ INSERT INTO main_history VALUES(NULL,0,0,0,105,20.3,1,0);
INSERT INTO main_history VALUES
(
NULL,0,0,0,106,20.65,1,0
)
;
INSERT INTO main_history VALUES
(
NULL,0,0,0,106,20.65,1,0
)
;
INSERT INTO main_history VALUES
(
NULL,0,0,0,107,20233.7,1,0
)
;
INSERT INTO main_history VALUES
(
NULL,0,0,0,107,20233.7,1,0
)
;
INSERT INTO main_history VALUES
(
NULL,0,0,0,108,245560.67671,1,0
)
;
INSERT INTO main_history VALUES
(
NULL,0,0,0,108,245560.67671,1,0
)
;
DROP TABLE IF EXISTS
`
main_emergencylog
`
;
CREATE TABLE
`
main_emergencylog
`
(
`
id
`
INTEGER PRIMARY KEY AUTOINCREMENT,
`
date
`
date
NOT NULL,
`
time
`
time
NOT NULL,
`
time_usec
`
INTEGER
(
5
)
NOT NULL,
`
type_id
`
INTEGER
(
5
)
NOT NULL,
CONSTRAINT
`
type_id_refs_id_a3133ca
`
FOREIGN KEY
(
`
type_id
`
)
REFERENCES
`
main_emergencytype
`
(
`
id
`
)
)
;
DROP TABLE IF EXISTS
`
main_emergencyrecords
`
;
CREATE TABLE
`
main_emergencyrecords
`
(
`
id
`
INTEGER PRIMARY KEY AUTOINCREMENT,
`
date
`
date
NOT NULL,
`
time
`
time
NOT NULL,
`
time_usec
`
INTEGER
(
10
)
NOT NULL,
`
log_id
`
INTEGER
(
11
)
NOT NULL,
`
sensor_id
`
INTEGER
(
10
)
NOT NULL,
`
value
`
double NOT NULL,
CONSTRAINT
`
log_id_refs_id_77a37ea9
`
FOREIGN KEY
(
`
log_id
`
)
REFERENCES
`
main_emergencylog
`
(
`
id
`
)
,
CONSTRAINT
`
sensor_id_refs_id_436bab5e
`
FOREIGN KEY
(
`
sensor_id
`
)
REFERENCES
`
main_sensor
`
(
`
id
`
)
)
;
_EOF_
_EOF_
#
# KEY `main_emergencyrecords_log_id` (`log_id`),
# KEY `main_emergencyrecords_sensor_id` (`sensor_id`),
#
KEY main_history_sensor_id (sensor_id)
# KEY main_history_sensor_id (sensor_id)
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