mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
PostreSQL: DUAL_UNIQUE constraint name fixed to allow more of them
git-svn-id: svn://ultimatepp.org/upp/trunk@13496 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7a6958da7d
commit
ecaab31752
1 changed files with 2 additions and 2 deletions
|
|
@ -112,9 +112,9 @@
|
|||
"(" #k1 ", " #k2 ");",\
|
||||
"alter table @t drop constraint DK_@t;")
|
||||
|
||||
#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("alter table @t add constraint DQ_@t unique "\
|
||||
#define DUAL_UNIQUE(k1, k2) ATTRIBUTE("alter table @t add constraint DQ_@t$" #k1 "$" #k2 " unique "\
|
||||
"(" #k1 ", " #k2 ");",\
|
||||
"alter table @t drop constraint DQ_@t;")
|
||||
"alter table @t drop constraint DQ_@t$" #k1 "$" #k2 ";")
|
||||
|
||||
#define SQLCHECK(name, chk) ATTRIBUTE("alter table @t add constraint CHK_@t$" #name " check "\
|
||||
"(" chk ");",\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue