개정판 48cabe25
issue #1171: MSSQL 지원 - MSQL을 지원하도록 프로그램 개선
Change-Id: I165ff5d2a26a0f442bac2475b25601a9fb4474ee
DTI_PID/DTI_PID/Scripts/Project.Projects.sql | ||
---|---|---|
7 | 7 |
`CreatedDate` TEXT, |
8 | 8 |
`UpdatedDate` TEXT |
9 | 9 |
); |
10 |
|
|
11 |
CREATE TABLE IF NOT EXISTS DBTypes ( |
|
12 |
UID INTEGER PRIMARY KEY AUTOINCREMENT |
|
13 |
NOT NULL, |
|
14 |
Name TEXT |
|
15 |
); |
|
16 |
INSERT INTO DBTypes(Name) select 'SQLite' where not exists(select 1 from DBTypes where Name='SQLite'); |
|
17 |
INSERT INTO DBTypes(Name) select 'MSSQL' where not exists(select 1 from DBTypes where Name='MSSQL'); |
|
18 |
|
|
19 |
CREATE TABLE IF NOT EXISTS DBSettings ( |
|
20 |
UID INTEGER PRIMARY KEY AUTOINCREMENT |
|
21 |
NOT NULL, |
|
22 |
Projects_UID INTEGER REFERENCES Projects (Id) |
|
23 |
NOT NULL, |
|
24 |
DBTypes_UID INTEGER REFERENCES DBTypes (UID) |
|
25 |
NOT NULL, |
|
26 |
Host TEXT, |
|
27 |
User TEXT, |
|
28 |
Password TEXT, |
|
29 |
FilePath TEXT, |
|
30 |
UNIQUE ( |
|
31 |
Projects_UID |
|
32 |
) |
|
33 |
); |
내보내기 Unified diff