mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
MySql: .sch new macros (thanks zsolt)
git-svn-id: svn://ultimatepp.org/upp/trunk@7440 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
91abf69578
commit
68d13e02e7
1 changed files with 10 additions and 0 deletions
|
|
@ -70,6 +70,13 @@
|
|||
|
||||
#define INNODB TABLE_SUFFIX(" type=InnoDB")
|
||||
|
||||
#define DUAL_PRIMARY_KEY(k1, k2) INLINE_ATTRIBUTE("primary key (" #k1 ", " #k2 ")")
|
||||
|
||||
#define INDEX_LIST(u, l) ATTRIBUTE("create index IDXL_@t$" #u " on @t "\
|
||||
"(" l ");",\
|
||||
"drop index IDXL_@t$" #u ";")
|
||||
|
||||
|
||||
#include <Sql/sch_model.h>
|
||||
|
||||
#undef INT
|
||||
|
|
@ -117,6 +124,9 @@
|
|||
|
||||
#undef INDEX
|
||||
|
||||
#undef DUAL_PRIMARY_KEY
|
||||
#undef INDEX_LIST
|
||||
|
||||
#undef UNIQUE
|
||||
#undef DUAL_UNIQUE
|
||||
#undef UNIQUE_LIST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue