Skip to content
代码片段 群组 项目
提交 725456b2 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Add junction tables for struct/cluster and enum/cluster.

上级 c4ff05ae
No related branches found
No related tags found
无相关合并请求
......@@ -444,6 +444,16 @@ CREATE TABLE IF NOT EXISTS "ENUM_ITEM" (
"VALUE" integer,
foreign key (ENUM_REF) references ENUM(ENUM_ID)
);
/*
ENUM_CLUSTER table is a junction table, optionally linking an enum to one or more clusters
*/
DROP TABLE IF EXISTS "ENUM_CLUSTER";
CREATE TABLE IF NOT EXISTS "ENUM_CLUSTER" (
"ENUM_REF" integer,
"CLUSTER_REF" integer,
foreign key (ENUM_REF) references ENUM(ENUM_ID),
foreign key (CLUSTER_REF) references CLUSTER(CLUSTER_ID)
);
/*
STRUCT table contains structs directly loaded from packages.
*/
......@@ -469,6 +479,16 @@ CREATE TABLE IF NOT EXISTS "STRUCT_ITEM" (
"IS_WRITABLE" integer,
foreign key (STRUCT_REF) references STRUCT(STRUCT_ID)
);
/*
STRUCT_CLUSTER table is a junction table, optionally linking a struct to one or more clusters
*/
DROP TABLE IF EXISTS "STRUCT_CLUSTER";
CREATE TABLE IF NOT EXISTS "STRUCT_CLUSTER" (
"STRUCT_REF" integer,
"CLUSTER_REF" integer,
foreign key (STRUCT_REF) references STRUCT(STRUCT_ID),
foreign key (CLUSTER_REF) references CLUSTER(CLUSTER_ID)
);
/*
*
* $$$$$$\ $$\ $$\ $$\
......@@ -939,3 +959,4 @@ CREATE TABLE IF NOT EXISTS "SETTING" (
"VALUE" text,
UNIQUE(CATEGORY, KEY)
);
/* EO SCHEMA */
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册