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:
cxl 2014-06-11 06:33:38 +00:00
parent 91abf69578
commit 68d13e02e7

View file

@ -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