mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Sqlite3 schema fix
git-svn-id: svn://ultimatepp.org/upp/trunk@1882 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8132cd7f9f
commit
880ff42e7d
1 changed files with 4 additions and 4 deletions
|
|
@ -55,13 +55,13 @@
|
|||
|
||||
#define DUAL_PRIMARY_KEY(k1, k2) INLINE_ATTRIBUTE(", primary key (" #k1 ", " #k2 ")")
|
||||
|
||||
#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("alter table @t add constraint DQ_@t unique "\
|
||||
#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("create unique index DQ_@t$" #k1 #k2 " on @t "\
|
||||
"(" #k1 ", " #k2 ");",\
|
||||
"alter table @t drop constraint DQ_@t;")
|
||||
"drop index DQ_@t$" #k1 #k2 ";")
|
||||
|
||||
#define UNIQUE_LIST(u, l) ATTRIBUTE("alter table @t add constraint UQ_@t$" #u " unique "\
|
||||
#define UNIQUE_LIST(u, l) ATTRIBUTE("create unique index DQ_@t$" #u " on @t "\
|
||||
"(" l ");",\
|
||||
"alter table @t drop constraint UQ_@t$" #u ";")
|
||||
"drop index UQ_@t$" #u ";")
|
||||
|
||||
#define SQLCHECK(n, ct) ATTRIBUTE("alter table @t add constraint CHK_@t$" #n " check "\
|
||||
"(" ct ");",\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue