CCM NG: Updated SQL create scripts for test to reflect to latest schema changes

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5369 8810af33-2d31-482b-a856-94f89814c4df
jensp 2018-04-07 14:24:50 +00:00
parent bf06b68ca3
commit 3d4edc19a7
6 changed files with 2129 additions and 152 deletions

View File

@ -908,7 +908,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint UK_goj42ghwu4tf1akfb2r6ensns unique (WORKFLOW_TEMPLATE_ID);
create table CCM_CORE.APPLICATIONS (
APPLICATION_TYPE varchar(1024) not null,
PRIMARY_URL varchar(1024) not null,
@ -1038,21 +1037,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID, LOCALE)
);
create table CCM_CORE.FLEX_LAYOUT_BOXES (
BOX_ID bigint not null,
BOX_ORDER integer,
BOX_SIZE integer,
COMPONENT_ID bigint,
LAYOUT_ID bigint,
primary key (BOX_ID)
);
create table CCM_CORE.FLEX_LAYOUT_COMPONENTS (
DIRECTION varchar(255),
COMPONENT_MODEL_ID bigint not null,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS (
COMPONENT_ID bigint not null,
LOCALIZED_VALUE varchar(2147483647),
@ -1317,10 +1301,20 @@ drop sequence if exists HIBERNATE_SEQUENCE;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
CONTAINER_ID bigint,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID bigint not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
STYLE_ID bigint,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID bigint not null,
LOCALIZED_VALUE varchar(2147483647),
@ -1449,9 +1443,9 @@ drop sequence if exists HIBERNATE_SEQUENCE;
SETTING_ID bigint not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_LONG bigint,
SETTING_VALUE_DOUBLE double,
SETTING_VALUE_BIG_DECIMAL decimal(19,2),
SETTING_VALUE_LONG bigint,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID)
@ -1488,6 +1482,44 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID bigint not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID bigint not null,
MEDIA_QUERY_ID bigint,
STYLE_ID bigint,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID bigint not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID bigint,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID bigint not null,
SELECTOR varchar(2048),
STYLE_ID bigint,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID bigint not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA blob,
@ -1663,6 +1695,821 @@ drop sequence if exists HIBERNATE_SEQUENCE;
add constraint UK_o113id7d1cxql0edsrohlnn9x unique (UUID);
create sequence hibernate_sequence start with 1 increment by 1;
alter table CCM_CMS.ARTICLE_TEXTS
add constraint FK1pel1j53h3t3adh9o5cbje2d3
foreign key (OBJECT_ID)
references CCM_CMS.ARTICLES;
alter table CCM_CMS.ARTICLE_TEXTS_AUD
add constraint FKa06qks62tieeba607ykdrv3ry
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ARTICLE_TEXTS_AUD
add constraint FKljfof07259eofkub5g2dx0jlq
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ARTICLES
add constraint FK2pwvn9v2t2pikcw5hn2oq13q
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.ARTICLES_AUD
add constraint FKnevu4il5fu4vy2f5twh50kstr
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.ASSET_TITLES
add constraint FKj61sy509dv63u246wlau5f9pa
foreign key (ASSET_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.ASSET_TITLES_AUD
add constraint FK6yuimrre2oowjo0diw6b00nhe
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ASSET_TITLES_AUD
add constraint FKcaockxi21ve0irh06vegc77uu
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ASSETS
add constraint FKlbiojib44ujxv9eee1sjn67qk
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.ASSETS_AUD
add constraint FKi5q560xg9357da8gc5sukqbw8
foreign key (OBJECT_ID, REV)
references CCM_CORE.CCM_OBJECTS_AUD;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS
add constraint FKeqcryerscpnmqpipwyrvd0lae
foreign key (LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS_AUD
add constraint FK727detagt51wmejywhteq4jfs
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS_AUD
add constraint FK7589vpkxegxs8y3wqjx37tig3
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS
add constraint FKixgpo00r1cqq5jw1s7v6fchpn
foreign key (LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS_AUD
add constraint FKqhqkm6tas9fdmggv4k1vj0nc7
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS_AUD
add constraint FKqv2o9jffgok4518fb5c85552l
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LISTS
add constraint FKqyj7ifjfyp7kmsj8fiyxn0am3
foreign key (ITEM_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.ATTACHMENT_LISTS_AUD
add constraint FKgdt5p8huh1lhk299hkrytqmqc
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LISTS_AUD
add constraint FKdn502yobchapgcyj1bu00u67a
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENTS
add constraint FKmn0bm137vwr61iy5nb59cjm22
foreign key (ASSET_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.ATTACHMENTS
add constraint FK3mqbt13sbed2ae0esrps4p0oh
foreign key (ATTACHMENT_LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENTS_AUD
add constraint FKl19663g6todb5d1e9lok7fl9e
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENTS_AUD
add constraint FK4n28sostn1hc8bf43qsp1pyuf
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.AUDIO_ASSETS
add constraint FKg9tos3it7lflk5o90jluonpev
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.AUDIO_ASSETS
add constraint FKgxpsfjlfsk609c0w2te18y90v
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.AUDIO_ASSETS_AUD
add constraint FKbt11nwbde1en1upceratct6s3
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS
add constraint FK31kl9gu49nvhcku7gfsro6hqq
foreign key (ASSET_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS_AUD
add constraint FKhehi2pvqliq0s2jhv661lar7g
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS_AUD
add constraint FK9f5n81i6j0yopog1hvua2wmxc
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BINARY_ASSETS
add constraint FKltx0jq1u1aflrd20k1c77m8vh
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.BINARY_ASSETS_AUD
add constraint FK1qfap4mxprjk7gnjdcvdxr5mv
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS
add constraint FKmeydpwmlq0wqw3gab4auiyrqg
foreign key (ASSET_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS_AUD
add constraint FKfff2ein3uhgwyyyajamy3hfwy
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS_AUD
add constraint FKtl48flnrkr0upvrc1ksy1o92m
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BOOKMARKS
add constraint FKksnngecvvxmsxdvri4shby2hy
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.BOOKMARKS_AUD
add constraint FK47cpxaw9vnnes2dbr6h3toirl
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.CATEGORIZED_ITEM_COMPONENTS
add constraint FKlraxqtl9cnntdo0qovq340y7b
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.CATEGORY_TREE_COMPONENTS
add constraint FKfhc51tkdf705o0sy8sndqpkqa
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.CONTENT_ITEM_COMPONENTS
add constraint FKp83o82kxo2ipa0xo03wxp4dcr
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS
add constraint FK6mt4tjnenr79o52wcj99tpeu4
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS_AUD
add constraint FK12yrysxv4fxa73ker40e883av
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS_AUD
add constraint FK4pxuq0pf2hrtireo902t21ocx
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_NAMES
add constraint FKijrfangf9s3lyncmod651xyg8
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_NAMES_AUD
add constraint FKq631ee5ollx5xkliowcrt8wkj
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_NAMES_AUD
add constraint FKbjaycalit9pa2u7ae5dwjgtky
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_TITLES
add constraint FKbvf67lou4ep94pgi6tur6o2gf
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_TITLES_AUD
add constraint FKfbno0rxshoi57y8aehwv3o42j
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_TITLES_AUD
add constraint FK4c3exifj1ghwg6htglynlo094
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKg83y3asxi1jr7larwven7ueu0
foreign key (CONTENT_TYPE_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKfh1nm46qpw6xcwkmgaqw2iu3h
foreign key (LIFECYCLE_ID)
references CCM_CMS.LIFECYCLES;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKl00ldjygr6as8gqbt3j14ke7j
foreign key (WORKFLOW_ID)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FK1fr2q5y1wpmrufruja5ivfpuf
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.CONTENT_ITEMS_AUD
add constraint FKsfhj0qok0ksjplvgcaditqekl
foreign key (OBJECT_ID, REV)
references CCM_CORE.CCM_OBJECTS_AUD;
alter table CCM_CMS.CONTENT_SECTION_LIFECYCLE_DEFINITIONS
add constraint FKqnsnk1eju8vrbm7x0wr5od4ll
foreign key (LIFECYCLE_DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.CONTENT_SECTION_LIFECYCLE_DEFINITIONS
add constraint FK7daejlunqsnhgky4b92n019a9
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTION_ROLES
add constraint FKkn5nygbmub9wd5lxw3402t82d
foreign key (ROLE_ID)
references CCM_CORE.CCM_ROLES;
alter table CCM_CMS.CONTENT_SECTION_ROLES
add constraint FKgcn76piocmkmvl3b0omv9vkv9
foreign key (SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK1t85m4jehnhd6tyx5dtpavr15
foreign key (WORKFLOW_TEMPLATE_ID)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK6kuejkcl9hcbkr8q6bdlatt8q
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FKavcn4aakxsb7kt7hmqlx0ecu6
foreign key (ROOT_ASSETS_FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FKd5sahsfsycq3i5icf3122ne8e
foreign key (ROOT_DOCUMENTS_FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FK72jh0axiiru87i61mppvaiv96
foreign key (OBJECT_ID)
references CCM_CORE.APPLICATIONS;
alter table CCM_CMS.CONTENT_TYPE_DESCRIPTIONS
add constraint FKknyen2aw844b65grp7uys34cb
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_TYPE_LABELS
add constraint FK3suusqws1xgffyk3yob7m7dge
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_TYPES
add constraint FKriohuo8093its1k5rgoc5yrfc
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FK8s83we1tuh9r3j57dyos69wfa
foreign key (DEFAULT_LIFECYCLE_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FKpgeccqsr50xwb268ypmfx0r66
foreign key (DEFAULT_WORKFLOW)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FK96vwsbqfbdg33ujeeawajr0v4
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.EVENT_COSTS
add constraint FKrbmepytotc73h5inefeih6rea
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_COSTS_AUD
add constraint FKocok2fj1oflsi16i9guf8bpc6
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_COSTS_AUD
add constraint FKr17panho66n1ixh8tdms01e2c
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_DATES
add constraint FKfsfsbgoeoi511ll69iy1v7ujs
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_DATES_AUD
add constraint FK70p2ayg7fexrb9jogdu3vlwfb
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_DATES_AUD
add constraint FKklmki82kiy0hwwpfdur2s7l3e
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_LOCATIONS
add constraint FK8snwub57evwh6px3n265tcoiv
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_LOCATIONS_AUD
add constraint FKk5thpb1gaktsk213o53y97hno
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_LOCATIONS_AUD
add constraint FKivwe7h7k4myq4rhuh2wkepd9j
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS
add constraint FKlmq881mxd08hthm5dy4ayjq0e
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS_AUD
add constraint FKqgkj5almojvt913heh1f4kro5
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS_AUD
add constraint FKh8vhg85li7c8yqjrg2plvkgho
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TEXTS
add constraint FKc46r2g7ry50b9e875dldjhwxp
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_TEXTS_AUD
add constraint FK82mc7uswliij43std6gwyswj3
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TEXTS_AUD
add constraint FK1s381t783dmpk0fup65mvma0w
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TYPES
add constraint FKhdbj26ubbhmht44qpin7ony29
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_TYPES_AUD
add constraint FKgby7m27rnb6oeloqycyf4b1kx
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TYPES_AUD
add constraint FKhcpvb5q2geclo5vxk0gt815x8
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENTS
add constraint FKt56odfo39eq13gcj1bbtngoj7
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.EVENTS_AUD
add constraint FK9gofktd490afdwak49x15w6me
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS
add constraint FKrwn3rdmqevi618fthojs0xkkq
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS
add constraint FK36xjlvslk0vlekn9lsc7x1c7a
foreign key (OBJECT_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS_AUD
add constraint FKp3jndaw4k35wb3d6hg5ng4xww
foreign key (OBJECT_ID, REV)
references CCM_CMS.BOOKMARKS_AUD;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS
add constraint FK82gxr2se97dl902eu4wvhdvh3
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS
add constraint FKps8bq22n1fxy8svnsrui3f0t2
foreign key (OBJECT_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS_AUD
add constraint FKilxwg8ppd64hl14tojfmupau9
foreign key (OBJECT_ID, REV)
references CCM_CMS.BOOKMARKS_AUD;
alter table CCM_CMS.FILES
add constraint FKpg74w39tfbbuqhcy21u61q138
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.FILES_AUD
add constraint FKdl876a4twd0gkranwqkdmxnwy
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.FIXED_CONTENT_ITEM_COMPONENTS
add constraint FKlfv2clu7ubk18unio8fyvlbnf
foreign key (CONTENT_ITEM_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.FIXED_CONTENT_ITEM_COMPONENTS
add constraint FKkpiuth8e994phxy1x1drh2wf5
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.FOLDER_CONTENT_SECTION_MAP
add constraint FKnof2m7o4f0ufrugeh4g5wt3g9
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.FOLDER_CONTENT_SECTION_MAP
add constraint FKmmb7728dp707dljq282ch47k3
foreign key (FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.FOLDERS
add constraint FK2ag06r5ywtuji2pkt68etlg48
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORIES;
alter table CCM_CMS.GREETING_ITEM_COMPONENTS
add constraint FK3fble8pmmolb7lmsca8akmb94
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.IMAGES
add constraint FK51ja1101epvl74auenv6sqyev
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.IMAGES
add constraint FKmdqranhdstkn6m6d73l15amxs
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.IMAGES_AUD
add constraint FK4jsrdpe6d8is0ybx2p7sxivwf
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.ITEM_LIST_COMPONENTS
add constraint FKje8r8nvkqv8fj7i0eo1pew2yq
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.ITEM_LIST_ORDER
add constraint FKisnil2ibh98y2ws8or6guij21
foreign key (ITEM_LIST_ID)
references CCM_CMS.ITEM_LIST_COMPONENTS;
alter table CCM_CMS.LEGAL_METADATA
add constraint FKnxl7uyv1ks0qabgeienx2t9d1
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.LEGAL_METADATA_AUD
add constraint FKpt3eqil7iij6t5h1lrnjbb5xs
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS
add constraint FKf9s3kxi6y5r60wksv5bospmx1
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS_AUD
add constraint FKc3lonfk7mn3p14ix96k5u74om
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS_AUD
add constraint FKgxxsteesd2em96fj05f0u4men
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS
add constraint FKhsy9u7nrh3slmkkri3nba7e1
foreign key (ASSET_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS_AUD
add constraint FKe2da3kha2nl6sj0dllhepuxtq
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS_AUD
add constraint FKr867xswbxlqq6diyqyqnrh670
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LIFECYCLE_DEFINITION_DESCRIPTIONS
add constraint FKsdr5aoogu4b9x95m8qsbe4t0y
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_DEFINITION_LABELS
add constraint FKt4h71sl91ue18b25pdjty7jex
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITION_DESCRIPTIONS
add constraint FKafbeck8qm0nflpt9aedn196ou
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITION_LABELS
add constraint FKqysn500b0sp7bu8gy2sf2q8b9
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS
add constraint FKq5cwomuc9s1f3fsriq9t35407
foreign key (LIFECYCLE_DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLES
add constraint FK5yx1a2f8g4w95p1ul77sfhow8
foreign key (DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYLE_PHASES
add constraint FKpqysexvd82e4xd4uibtdfn8j4
foreign key (DEFINITION_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYLE_PHASES
add constraint FKlh2b1nokqxhf790lt7lhgoisc
foreign key (LIFECYCLE_ID)
references CCM_CMS.LIFECYCLES;
alter table CCM_CMS.MPA_SECTION_TEXTS
add constraint FKaruovr4oa07syyhvkixfwc17h
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLE_SECTIONS;
alter table CCM_CMS.MPA_SECTION_TEXTS_AUD
add constraint FKs4kvqroybq9ldb2rwhr6v8kmt
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TEXTS_AUD
add constraint FKpxvtsycad805c8u0vyh7pcb2c
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TITLES
add constraint FK7qpmrj6yjvad50k5budn5rag4
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLE_SECTIONS;
alter table CCM_CMS.MPA_SECTION_TITLES_AUD
add constraint FKk64mi5911ybptw4slxh8i0lgb
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TITLES_AUD
add constraint FKq7f0y31r5tk2nesx0lv53d6sb
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SUMMARIES
add constraint FK5kx5ghrkh6tqa2vms2qabacx8
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLES;
alter table CCM_CMS.MPA_SUMMARIES_AUD
add constraint FKmmrabpl2gsrdb2udc76x9o6q7
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SUMMARIES_AUD
add constraint FK3kebu6i1dtwfegp4409hhob4x
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS
add constraint FK30tkd6xp4i1gg6nrse4di2yxx
foreign key (MULTIPART_ARTICLE_ID)
references CCM_CMS.MULTIPART_ARTICLES;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS_AUD
add constraint FK8xq6k3a1kmnxv9nh5wae80k6k
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS_AUD
add constraint FKsudhdaa9hs73447yik8mdy3ts
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLES
add constraint FKj7j0ew378cmcta2dfdso4tmey
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.MULTIPART_ARTICLES_AUD
add constraint FKacl2u1cx6tmwfb9cpaxstw39k
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.MultiPartArticle_MultiPartArticleSection_AUD
add constraint FK9vexjsvd62ufkgi4g24qiql70
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MultiPartArticle_MultiPartArticleSection_AUD
add constraint FK4ds2fgwphr74869qkn4e2yia6
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.NEWS
add constraint FKl8jhpvtn0lx9drkhhbbuvqqis
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.NEWS_AUD
add constraint FK7akvtda3f51espb46xtjalcl2
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.NEWS_TEXTS
add constraint FK1s5m60rf80iaidktawb3ebmf3
foreign key (OBJECT_ID)
references CCM_CMS.NEWS;
alter table CCM_CMS.NEWS_TEXTS_AUD
add constraint FKrand9sf233sgkgp8wfoen468l
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.NEWS_TEXTS_AUD
add constraint FKotjtrajmmjxussl4pvy2vl7ho
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.PAGE_THEME_CONFIGURATIONS
add constraint FK6l6xp6ex6sh2uuxfmeekf6ckn
foreign key (PAGE_ID)
references CCM_CMS.PAGES;
alter table CCM_CMS.PAGES
add constraint FKqweb08d151ot4ij9io72w3yhx
foreign key (INDEX_PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CMS.PAGES
add constraint FKg2p2ahbayc2coei72pk1lnenf
foreign key (ITEM_PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CMS.PAGES
add constraint FKmgmth087tmxwieujn2vs5opbo
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.PAGES_APP
add constraint FK5swx0e8pj0mm5t1es0lj4nwlx
foreign key (CATEGORY_DOMAIN_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CMS.PAGES_APP
add constraint FKk4jb5fylibg2pbbaypyt6f8lb
foreign key (OBJECT_ID)
references CCM_CORE.SITE_AWARE_APPLICATIONS;
alter table CCM_CMS.RELATED_LINKS
add constraint FKb517dnfj56oby2s34jp1omuim
foreign key (BOOKMARK_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.RELATED_LINKS
add constraint FK7ts8tmnwxi8kry7cer3egujsv
foreign key (TARGET_ITEM)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.RELATED_LINKS
add constraint FK35tv60a9kflo17h6xduvwvgis
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.RELATED_LINKS_AUD
add constraint FKiuwk6mcj3h5gccu2aviq3d8lt
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.SIDE_NOTE_TEXTS
add constraint FK4mvpioee23u1qswmn1fekipoh
foreign key (SIDE_NOTE_ID)
references CCM_CMS.SIDE_NOTES;
alter table CCM_CMS.SIDE_NOTE_TEXTS_AUD
add constraint FKiu4ht1tipeal2csdkvws4fnws
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.SIDE_NOTE_TEXTS_AUD
add constraint FKacekagiqks1cj9otxdmryl934
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.SIDE_NOTES
add constraint FKea6cikleenmkgw5bwus22mfr3
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.SIDE_NOTES_AUD
add constraint FKl5pkg9mp2ymc2uo4kmlubyp3m
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.VIDEO_ASSETS
add constraint FKjuywvv7wq9pyid5b6ivyrc0yk
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.VIDEO_ASSETS
add constraint FKqt2cx1r31kqbqkimdld312i9g
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.VIDEO_ASSETS_AUD
add constraint FKdrx9uu9a03ju7vqvkjretohpk
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.WORKFLOW_TASKS
add constraint FKoon3rwfmg0lhgbj4un4q3otya
foreign key (TASK_ID)
references CCM_CORE.WORKFLOW_ASSIGNABLE_TASKS;
alter table CCM_CORE.APPLICATIONS
add constraint FKatcp9ij6mbkx0nfeig1o6n3lm
foreign key (OBJECT_ID)
@ -1753,21 +2600,6 @@ create sequence hibernate_sequence start with 1 increment by 1;
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKeiqh69t1lr7u09hjuxfyxsbs
foreign key (COMPONENT_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKmrobhhqidcf1657ugcgatrd0y
foreign key (LAYOUT_ID)
references CCM_CORE.FLEX_LAYOUT_COMPONENTS;
alter table CCM_CORE.FLEX_LAYOUT_COMPONENTS
add constraint FK8qxnqt75ikxtedx0xreoeiygg
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS
add constraint FKfh0k9lj3pf4amfc9bbbss0tr1
foreign key (COMPONENT_ID)
@ -1969,10 +2801,20 @@ create sequence hibernate_sequence start with 1 increment by 1;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -2108,6 +2950,26 @@ create sequence hibernate_sequence start with 1 increment by 1;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)

View File

@ -8,6 +8,7 @@ drop sequence if exists HIBERNATE_SEQUENCE;
create schema CCM_CORE;
create table CCM_CMS.ARTICLE_TEXTS (
OBJECT_ID int8 not null,
LOCALIZED_VALUE text,
@ -908,7 +909,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint UK_goj42ghwu4tf1akfb2r6ensns unique (WORKFLOW_TEMPLATE_ID);
create table CCM_CORE.APPLICATIONS (
APPLICATION_TYPE varchar(1024) not null,
PRIMARY_URL varchar(1024) not null,
@ -1038,21 +1038,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID, LOCALE)
);
create table CCM_CORE.FLEX_LAYOUT_BOXES (
BOX_ID int8 not null,
BOX_ORDER int4,
BOX_SIZE int4,
COMPONENT_ID int8,
LAYOUT_ID int8,
primary key (BOX_ID)
);
create table CCM_CORE.FLEX_LAYOUT_COMPONENTS (
DIRECTION varchar(255),
COMPONENT_MODEL_ID int8 not null,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS (
COMPONENT_ID int8 not null,
LOCALIZED_VALUE text,
@ -1317,10 +1302,20 @@ drop sequence if exists HIBERNATE_SEQUENCE;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
CONTAINER_ID int8,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID int8 not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
STYLE_ID int8,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID int8 not null,
LOCALIZED_VALUE text,
@ -1449,9 +1444,9 @@ drop sequence if exists HIBERNATE_SEQUENCE;
SETTING_ID int8 not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_LONG int8,
SETTING_VALUE_DOUBLE float8,
SETTING_VALUE_BIG_DECIMAL numeric(19, 2),
SETTING_VALUE_LONG int8,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID)
@ -1488,6 +1483,44 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID int8 not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float4,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float4,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID int8 not null,
MEDIA_QUERY_ID int8,
STYLE_ID int8,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID int8 not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID int8,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID int8 not null,
SELECTOR varchar(2048),
STYLE_ID int8,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID int8 not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA oid,
@ -1663,6 +1696,821 @@ drop sequence if exists HIBERNATE_SEQUENCE;
add constraint UK_o113id7d1cxql0edsrohlnn9x unique (UUID);
create sequence hibernate_sequence start 1 increment 1;
alter table CCM_CMS.ARTICLE_TEXTS
add constraint FK1pel1j53h3t3adh9o5cbje2d3
foreign key (OBJECT_ID)
references CCM_CMS.ARTICLES;
alter table CCM_CMS.ARTICLE_TEXTS_AUD
add constraint FKa06qks62tieeba607ykdrv3ry
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ARTICLE_TEXTS_AUD
add constraint FKljfof07259eofkub5g2dx0jlq
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ARTICLES
add constraint FK2pwvn9v2t2pikcw5hn2oq13q
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.ARTICLES_AUD
add constraint FKnevu4il5fu4vy2f5twh50kstr
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.ASSET_TITLES
add constraint FKj61sy509dv63u246wlau5f9pa
foreign key (ASSET_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.ASSET_TITLES_AUD
add constraint FK6yuimrre2oowjo0diw6b00nhe
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ASSET_TITLES_AUD
add constraint FKcaockxi21ve0irh06vegc77uu
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ASSETS
add constraint FKlbiojib44ujxv9eee1sjn67qk
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.ASSETS_AUD
add constraint FKi5q560xg9357da8gc5sukqbw8
foreign key (OBJECT_ID, REV)
references CCM_CORE.CCM_OBJECTS_AUD;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS
add constraint FKeqcryerscpnmqpipwyrvd0lae
foreign key (LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS_AUD
add constraint FK727detagt51wmejywhteq4jfs
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_CAPTIONS_AUD
add constraint FK7589vpkxegxs8y3wqjx37tig3
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS
add constraint FKixgpo00r1cqq5jw1s7v6fchpn
foreign key (LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS_AUD
add constraint FKqhqkm6tas9fdmggv4k1vj0nc7
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LIST_DESCRIPTIONS_AUD
add constraint FKqv2o9jffgok4518fb5c85552l
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LISTS
add constraint FKqyj7ifjfyp7kmsj8fiyxn0am3
foreign key (ITEM_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.ATTACHMENT_LISTS_AUD
add constraint FKgdt5p8huh1lhk299hkrytqmqc
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENT_LISTS_AUD
add constraint FKdn502yobchapgcyj1bu00u67a
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENTS
add constraint FKmn0bm137vwr61iy5nb59cjm22
foreign key (ASSET_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.ATTACHMENTS
add constraint FK3mqbt13sbed2ae0esrps4p0oh
foreign key (ATTACHMENT_LIST_ID)
references CCM_CMS.ATTACHMENT_LISTS;
alter table CCM_CMS.ATTACHMENTS_AUD
add constraint FKl19663g6todb5d1e9lok7fl9e
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.ATTACHMENTS_AUD
add constraint FK4n28sostn1hc8bf43qsp1pyuf
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.AUDIO_ASSETS
add constraint FKg9tos3it7lflk5o90jluonpev
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.AUDIO_ASSETS
add constraint FKgxpsfjlfsk609c0w2te18y90v
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.AUDIO_ASSETS_AUD
add constraint FKbt11nwbde1en1upceratct6s3
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS
add constraint FK31kl9gu49nvhcku7gfsro6hqq
foreign key (ASSET_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS_AUD
add constraint FKhehi2pvqliq0s2jhv661lar7g
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BINARY_ASSET_DESCRIPTIONS_AUD
add constraint FK9f5n81i6j0yopog1hvua2wmxc
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BINARY_ASSETS
add constraint FKltx0jq1u1aflrd20k1c77m8vh
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.BINARY_ASSETS_AUD
add constraint FK1qfap4mxprjk7gnjdcvdxr5mv
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS
add constraint FKmeydpwmlq0wqw3gab4auiyrqg
foreign key (ASSET_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS_AUD
add constraint FKfff2ein3uhgwyyyajamy3hfwy
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BOOKMARK_DESCRIPTIONS_AUD
add constraint FKtl48flnrkr0upvrc1ksy1o92m
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.BOOKMARKS
add constraint FKksnngecvvxmsxdvri4shby2hy
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.BOOKMARKS_AUD
add constraint FK47cpxaw9vnnes2dbr6h3toirl
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.CATEGORIZED_ITEM_COMPONENTS
add constraint FKlraxqtl9cnntdo0qovq340y7b
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.CATEGORY_TREE_COMPONENTS
add constraint FKfhc51tkdf705o0sy8sndqpkqa
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.CONTENT_ITEM_COMPONENTS
add constraint FKp83o82kxo2ipa0xo03wxp4dcr
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS
add constraint FK6mt4tjnenr79o52wcj99tpeu4
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS_AUD
add constraint FK12yrysxv4fxa73ker40e883av
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_DESCRIPTIONS_AUD
add constraint FK4pxuq0pf2hrtireo902t21ocx
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_NAMES
add constraint FKijrfangf9s3lyncmod651xyg8
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_NAMES_AUD
add constraint FKq631ee5ollx5xkliowcrt8wkj
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_NAMES_AUD
add constraint FKbjaycalit9pa2u7ae5dwjgtky
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_TITLES
add constraint FKbvf67lou4ep94pgi6tur6o2gf
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.CONTENT_ITEM_TITLES_AUD
add constraint FKfbno0rxshoi57y8aehwv3o42j
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEM_TITLES_AUD
add constraint FK4c3exifj1ghwg6htglynlo094
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKg83y3asxi1jr7larwven7ueu0
foreign key (CONTENT_TYPE_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKfh1nm46qpw6xcwkmgaqw2iu3h
foreign key (LIFECYCLE_ID)
references CCM_CMS.LIFECYCLES;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FKl00ldjygr6as8gqbt3j14ke7j
foreign key (WORKFLOW_ID)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_ITEMS
add constraint FK1fr2q5y1wpmrufruja5ivfpuf
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.CONTENT_ITEMS_AUD
add constraint FKsfhj0qok0ksjplvgcaditqekl
foreign key (OBJECT_ID, REV)
references CCM_CORE.CCM_OBJECTS_AUD;
alter table CCM_CMS.CONTENT_SECTION_LIFECYCLE_DEFINITIONS
add constraint FKqnsnk1eju8vrbm7x0wr5od4ll
foreign key (LIFECYCLE_DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.CONTENT_SECTION_LIFECYCLE_DEFINITIONS
add constraint FK7daejlunqsnhgky4b92n019a9
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTION_ROLES
add constraint FKkn5nygbmub9wd5lxw3402t82d
foreign key (ROLE_ID)
references CCM_CORE.CCM_ROLES;
alter table CCM_CMS.CONTENT_SECTION_ROLES
add constraint FKgcn76piocmkmvl3b0omv9vkv9
foreign key (SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK1t85m4jehnhd6tyx5dtpavr15
foreign key (WORKFLOW_TEMPLATE_ID)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_SECTION_WORKFLOW_TEMPLATES
add constraint FK6kuejkcl9hcbkr8q6bdlatt8q
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FKavcn4aakxsb7kt7hmqlx0ecu6
foreign key (ROOT_ASSETS_FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FKd5sahsfsycq3i5icf3122ne8e
foreign key (ROOT_DOCUMENTS_FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.CONTENT_SECTIONS
add constraint FK72jh0axiiru87i61mppvaiv96
foreign key (OBJECT_ID)
references CCM_CORE.APPLICATIONS;
alter table CCM_CMS.CONTENT_TYPE_DESCRIPTIONS
add constraint FKknyen2aw844b65grp7uys34cb
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_TYPE_LABELS
add constraint FK3suusqws1xgffyk3yob7m7dge
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_TYPES;
alter table CCM_CMS.CONTENT_TYPES
add constraint FKriohuo8093its1k5rgoc5yrfc
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FK8s83we1tuh9r3j57dyos69wfa
foreign key (DEFAULT_LIFECYCLE_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FKpgeccqsr50xwb268ypmfx0r66
foreign key (DEFAULT_WORKFLOW)
references CCM_CORE.WORKFLOWS;
alter table CCM_CMS.CONTENT_TYPES
add constraint FK96vwsbqfbdg33ujeeawajr0v4
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.EVENT_COSTS
add constraint FKrbmepytotc73h5inefeih6rea
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_COSTS_AUD
add constraint FKocok2fj1oflsi16i9guf8bpc6
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_COSTS_AUD
add constraint FKr17panho66n1ixh8tdms01e2c
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_DATES
add constraint FKfsfsbgoeoi511ll69iy1v7ujs
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_DATES_AUD
add constraint FK70p2ayg7fexrb9jogdu3vlwfb
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_DATES_AUD
add constraint FKklmki82kiy0hwwpfdur2s7l3e
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_LOCATIONS
add constraint FK8snwub57evwh6px3n265tcoiv
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_LOCATIONS_AUD
add constraint FKk5thpb1gaktsk213o53y97hno
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_LOCATIONS_AUD
add constraint FKivwe7h7k4myq4rhuh2wkepd9j
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS
add constraint FKlmq881mxd08hthm5dy4ayjq0e
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS_AUD
add constraint FKqgkj5almojvt913heh1f4kro5
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_MAIN_CONTRIBUTORS_AUD
add constraint FKh8vhg85li7c8yqjrg2plvkgho
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TEXTS
add constraint FKc46r2g7ry50b9e875dldjhwxp
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_TEXTS_AUD
add constraint FK82mc7uswliij43std6gwyswj3
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TEXTS_AUD
add constraint FK1s381t783dmpk0fup65mvma0w
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TYPES
add constraint FKhdbj26ubbhmht44qpin7ony29
foreign key (OBJECT_ID)
references CCM_CMS.EVENTS;
alter table CCM_CMS.EVENT_TYPES_AUD
add constraint FKgby7m27rnb6oeloqycyf4b1kx
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENT_TYPES_AUD
add constraint FKhcpvb5q2geclo5vxk0gt815x8
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.EVENTS
add constraint FKt56odfo39eq13gcj1bbtngoj7
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.EVENTS_AUD
add constraint FK9gofktd490afdwak49x15w6me
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS
add constraint FKrwn3rdmqevi618fthojs0xkkq
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS
add constraint FK36xjlvslk0vlekn9lsc7x1c7a
foreign key (OBJECT_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.EXTERNAL_AUDIO_ASSETS_AUD
add constraint FKp3jndaw4k35wb3d6hg5ng4xww
foreign key (OBJECT_ID, REV)
references CCM_CMS.BOOKMARKS_AUD;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS
add constraint FK82gxr2se97dl902eu4wvhdvh3
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS
add constraint FKps8bq22n1fxy8svnsrui3f0t2
foreign key (OBJECT_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.EXTERNAL_VIDEO_ASSETS_AUD
add constraint FKilxwg8ppd64hl14tojfmupau9
foreign key (OBJECT_ID, REV)
references CCM_CMS.BOOKMARKS_AUD;
alter table CCM_CMS.FILES
add constraint FKpg74w39tfbbuqhcy21u61q138
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.FILES_AUD
add constraint FKdl876a4twd0gkranwqkdmxnwy
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.FIXED_CONTENT_ITEM_COMPONENTS
add constraint FKlfv2clu7ubk18unio8fyvlbnf
foreign key (CONTENT_ITEM_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.FIXED_CONTENT_ITEM_COMPONENTS
add constraint FKkpiuth8e994phxy1x1drh2wf5
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.FOLDER_CONTENT_SECTION_MAP
add constraint FKnof2m7o4f0ufrugeh4g5wt3g9
foreign key (CONTENT_SECTION_ID)
references CCM_CMS.CONTENT_SECTIONS;
alter table CCM_CMS.FOLDER_CONTENT_SECTION_MAP
add constraint FKmmb7728dp707dljq282ch47k3
foreign key (FOLDER_ID)
references CCM_CMS.FOLDERS;
alter table CCM_CMS.FOLDERS
add constraint FK2ag06r5ywtuji2pkt68etlg48
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORIES;
alter table CCM_CMS.GREETING_ITEM_COMPONENTS
add constraint FK3fble8pmmolb7lmsca8akmb94
foreign key (COMPONENT_MODEL_ID)
references CCM_CMS.CONTENT_ITEM_COMPONENTS;
alter table CCM_CMS.IMAGES
add constraint FK51ja1101epvl74auenv6sqyev
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.IMAGES
add constraint FKmdqranhdstkn6m6d73l15amxs
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.IMAGES_AUD
add constraint FK4jsrdpe6d8is0ybx2p7sxivwf
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.ITEM_LIST_COMPONENTS
add constraint FKje8r8nvkqv8fj7i0eo1pew2yq
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CMS.ITEM_LIST_ORDER
add constraint FKisnil2ibh98y2ws8or6guij21
foreign key (ITEM_LIST_ID)
references CCM_CMS.ITEM_LIST_COMPONENTS;
alter table CCM_CMS.LEGAL_METADATA
add constraint FKnxl7uyv1ks0qabgeienx2t9d1
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.LEGAL_METADATA_AUD
add constraint FKpt3eqil7iij6t5h1lrnjbb5xs
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS
add constraint FKf9s3kxi6y5r60wksv5bospmx1
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS_AUD
add constraint FKc3lonfk7mn3p14ix96k5u74om
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_CONTRIBUTORS_AUD
add constraint FKgxxsteesd2em96fj05f0u4men
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS
add constraint FKhsy9u7nrh3slmkkri3nba7e1
foreign key (ASSET_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS_AUD
add constraint FKe2da3kha2nl6sj0dllhepuxtq
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LEGAL_METADATA_RIGHTS_AUD
add constraint FKr867xswbxlqq6diyqyqnrh670
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.LIFECYCLE_DEFINITION_DESCRIPTIONS
add constraint FKsdr5aoogu4b9x95m8qsbe4t0y
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_DEFINITION_LABELS
add constraint FKt4h71sl91ue18b25pdjty7jex
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITION_DESCRIPTIONS
add constraint FKafbeck8qm0nflpt9aedn196ou
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITION_LABELS
add constraint FKqysn500b0sp7bu8gy2sf2q8b9
foreign key (OBJECT_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS
add constraint FKq5cwomuc9s1f3fsriq9t35407
foreign key (LIFECYCLE_DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYCLES
add constraint FK5yx1a2f8g4w95p1ul77sfhow8
foreign key (DEFINITION_ID)
references CCM_CMS.LIFECYLE_DEFINITIONS;
alter table CCM_CMS.LIFECYLE_PHASES
add constraint FKpqysexvd82e4xd4uibtdfn8j4
foreign key (DEFINITION_ID)
references CCM_CMS.LIFECYCLE_PHASE_DEFINITIONS;
alter table CCM_CMS.LIFECYLE_PHASES
add constraint FKlh2b1nokqxhf790lt7lhgoisc
foreign key (LIFECYCLE_ID)
references CCM_CMS.LIFECYCLES;
alter table CCM_CMS.MPA_SECTION_TEXTS
add constraint FKaruovr4oa07syyhvkixfwc17h
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLE_SECTIONS;
alter table CCM_CMS.MPA_SECTION_TEXTS_AUD
add constraint FKs4kvqroybq9ldb2rwhr6v8kmt
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TEXTS_AUD
add constraint FKpxvtsycad805c8u0vyh7pcb2c
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TITLES
add constraint FK7qpmrj6yjvad50k5budn5rag4
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLE_SECTIONS;
alter table CCM_CMS.MPA_SECTION_TITLES_AUD
add constraint FKk64mi5911ybptw4slxh8i0lgb
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SECTION_TITLES_AUD
add constraint FKq7f0y31r5tk2nesx0lv53d6sb
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SUMMARIES
add constraint FK5kx5ghrkh6tqa2vms2qabacx8
foreign key (OBJECT_ID)
references CCM_CMS.MULTIPART_ARTICLES;
alter table CCM_CMS.MPA_SUMMARIES_AUD
add constraint FKmmrabpl2gsrdb2udc76x9o6q7
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MPA_SUMMARIES_AUD
add constraint FK3kebu6i1dtwfegp4409hhob4x
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS
add constraint FK30tkd6xp4i1gg6nrse4di2yxx
foreign key (MULTIPART_ARTICLE_ID)
references CCM_CMS.MULTIPART_ARTICLES;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS_AUD
add constraint FK8xq6k3a1kmnxv9nh5wae80k6k
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLE_SECTIONS_AUD
add constraint FKsudhdaa9hs73447yik8mdy3ts
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MULTIPART_ARTICLES
add constraint FKj7j0ew378cmcta2dfdso4tmey
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.MULTIPART_ARTICLES_AUD
add constraint FKacl2u1cx6tmwfb9cpaxstw39k
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.MultiPartArticle_MultiPartArticleSection_AUD
add constraint FK9vexjsvd62ufkgi4g24qiql70
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.MultiPartArticle_MultiPartArticleSection_AUD
add constraint FK4ds2fgwphr74869qkn4e2yia6
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.NEWS
add constraint FKl8jhpvtn0lx9drkhhbbuvqqis
foreign key (OBJECT_ID)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.NEWS_AUD
add constraint FK7akvtda3f51espb46xtjalcl2
foreign key (OBJECT_ID, REV)
references CCM_CMS.CONTENT_ITEMS_AUD;
alter table CCM_CMS.NEWS_TEXTS
add constraint FK1s5m60rf80iaidktawb3ebmf3
foreign key (OBJECT_ID)
references CCM_CMS.NEWS;
alter table CCM_CMS.NEWS_TEXTS_AUD
add constraint FKrand9sf233sgkgp8wfoen468l
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.NEWS_TEXTS_AUD
add constraint FKotjtrajmmjxussl4pvy2vl7ho
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.PAGE_THEME_CONFIGURATIONS
add constraint FK6l6xp6ex6sh2uuxfmeekf6ckn
foreign key (PAGE_ID)
references CCM_CMS.PAGES;
alter table CCM_CMS.PAGES
add constraint FKqweb08d151ot4ij9io72w3yhx
foreign key (INDEX_PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CMS.PAGES
add constraint FKg2p2ahbayc2coei72pk1lnenf
foreign key (ITEM_PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CMS.PAGES
add constraint FKmgmth087tmxwieujn2vs5opbo
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CMS.PAGES_APP
add constraint FK5swx0e8pj0mm5t1es0lj4nwlx
foreign key (CATEGORY_DOMAIN_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CMS.PAGES_APP
add constraint FKk4jb5fylibg2pbbaypyt6f8lb
foreign key (OBJECT_ID)
references CCM_CORE.SITE_AWARE_APPLICATIONS;
alter table CCM_CMS.RELATED_LINKS
add constraint FKb517dnfj56oby2s34jp1omuim
foreign key (BOOKMARK_ID)
references CCM_CMS.BOOKMARKS;
alter table CCM_CMS.RELATED_LINKS
add constraint FK7ts8tmnwxi8kry7cer3egujsv
foreign key (TARGET_ITEM)
references CCM_CMS.CONTENT_ITEMS;
alter table CCM_CMS.RELATED_LINKS
add constraint FK35tv60a9kflo17h6xduvwvgis
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.RELATED_LINKS_AUD
add constraint FKiuwk6mcj3h5gccu2aviq3d8lt
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.SIDE_NOTE_TEXTS
add constraint FK4mvpioee23u1qswmn1fekipoh
foreign key (SIDE_NOTE_ID)
references CCM_CMS.SIDE_NOTES;
alter table CCM_CMS.SIDE_NOTE_TEXTS_AUD
add constraint FKiu4ht1tipeal2csdkvws4fnws
foreign key (REV)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.SIDE_NOTE_TEXTS_AUD
add constraint FKacekagiqks1cj9otxdmryl934
foreign key (REVEND)
references CCM_CORE.CCM_REVISIONS;
alter table CCM_CMS.SIDE_NOTES
add constraint FKea6cikleenmkgw5bwus22mfr3
foreign key (OBJECT_ID)
references CCM_CMS.ASSETS;
alter table CCM_CMS.SIDE_NOTES_AUD
add constraint FKl5pkg9mp2ymc2uo4kmlubyp3m
foreign key (OBJECT_ID, REV)
references CCM_CMS.ASSETS_AUD;
alter table CCM_CMS.VIDEO_ASSETS
add constraint FKjuywvv7wq9pyid5b6ivyrc0yk
foreign key (LEGAL_METADATA_ID)
references CCM_CMS.LEGAL_METADATA;
alter table CCM_CMS.VIDEO_ASSETS
add constraint FKqt2cx1r31kqbqkimdld312i9g
foreign key (OBJECT_ID)
references CCM_CMS.BINARY_ASSETS;
alter table CCM_CMS.VIDEO_ASSETS_AUD
add constraint FKdrx9uu9a03ju7vqvkjretohpk
foreign key (OBJECT_ID, REV)
references CCM_CMS.BINARY_ASSETS_AUD;
alter table CCM_CMS.WORKFLOW_TASKS
add constraint FKoon3rwfmg0lhgbj4un4q3otya
foreign key (TASK_ID)
references CCM_CORE.WORKFLOW_ASSIGNABLE_TASKS;
alter table CCM_CORE.APPLICATIONS
add constraint FKatcp9ij6mbkx0nfeig1o6n3lm
foreign key (OBJECT_ID)
@ -1753,21 +2601,6 @@ create sequence hibernate_sequence start 1 increment 1;
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKeiqh69t1lr7u09hjuxfyxsbs
foreign key (COMPONENT_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKmrobhhqidcf1657ugcgatrd0y
foreign key (LAYOUT_ID)
references CCM_CORE.FLEX_LAYOUT_COMPONENTS;
alter table CCM_CORE.FLEX_LAYOUT_COMPONENTS
add constraint FK8qxnqt75ikxtedx0xreoeiygg
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS
add constraint FKfh0k9lj3pf4amfc9bbbss0tr1
foreign key (COMPONENT_ID)
@ -1969,10 +2802,20 @@ create sequence hibernate_sequence start 1 increment 1;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -2108,6 +2951,26 @@ create sequence hibernate_sequence start 1 increment 1;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)

View File

@ -133,21 +133,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID, LOCALE)
);
create table CCM_CORE.FLEX_LAYOUT_BOXES (
BOX_ID bigint not null,
BOX_ORDER integer,
BOX_SIZE integer,
COMPONENT_ID bigint,
LAYOUT_ID bigint,
primary key (BOX_ID)
);
create table CCM_CORE.FLEX_LAYOUT_COMPONENTS (
DIRECTION varchar(255),
COMPONENT_MODEL_ID bigint not null,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS (
COMPONENT_ID bigint not null,
LOCALIZED_VALUE varchar(2147483647),
@ -412,10 +397,20 @@ drop sequence if exists HIBERNATE_SEQUENCE;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
CONTAINER_ID bigint,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID bigint not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
STYLE_ID bigint,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID bigint not null,
LOCALIZED_VALUE varchar(2147483647),
@ -544,11 +539,11 @@ drop sequence if exists HIBERNATE_SEQUENCE;
SETTING_ID bigint not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_LONG bigint,
SETTING_VALUE_BOOLEAN boolean,
SETTING_VALUE_DOUBLE double,
SETTING_VALUE_BIG_DECIMAL decimal(19,2),
SETTING_VALUE_LONG bigint,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID)
);
@ -583,6 +578,44 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID bigint not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID bigint not null,
MEDIA_QUERY_ID bigint,
STYLE_ID bigint,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID bigint not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID bigint,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID bigint not null,
SELECTOR varchar(2048),
STYLE_ID bigint,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID bigint not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA blob,
@ -848,21 +881,6 @@ create sequence hibernate_sequence start with 1 increment by 1;
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKeiqh69t1lr7u09hjuxfyxsbs
foreign key (COMPONENT_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKmrobhhqidcf1657ugcgatrd0y
foreign key (LAYOUT_ID)
references CCM_CORE.FLEX_LAYOUT_COMPONENTS;
alter table CCM_CORE.FLEX_LAYOUT_COMPONENTS
add constraint FK8qxnqt75ikxtedx0xreoeiygg
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS
add constraint FKfh0k9lj3pf4amfc9bbbss0tr1
foreign key (COMPONENT_ID)
@ -1064,10 +1082,20 @@ create sequence hibernate_sequence start with 1 increment by 1;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -1203,6 +1231,26 @@ create sequence hibernate_sequence start with 1 increment by 1;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)

View File

@ -134,21 +134,6 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID, LOCALE)
);
create table CCM_CORE.FLEX_LAYOUT_BOXES (
BOX_ID int8 not null,
BOX_ORDER int4,
BOX_SIZE int4,
COMPONENT_ID int8,
LAYOUT_ID int8,
primary key (BOX_ID)
);
create table CCM_CORE.FLEX_LAYOUT_COMPONENTS (
DIRECTION varchar(255),
COMPONENT_MODEL_ID int8 not null,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS (
COMPONENT_ID int8 not null,
LOCALIZED_VALUE text,
@ -413,10 +398,20 @@ drop sequence if exists HIBERNATE_SEQUENCE;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
CONTAINER_ID int8,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID int8 not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
STYLE_ID int8,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID int8 not null,
LOCALIZED_VALUE text,
@ -545,11 +540,11 @@ drop sequence if exists HIBERNATE_SEQUENCE;
SETTING_ID int8 not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_LONG int8,
SETTING_VALUE_BOOLEAN boolean,
SETTING_VALUE_DOUBLE float8,
SETTING_VALUE_BIG_DECIMAL numeric(19, 2),
SETTING_VALUE_LONG int8,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID)
);
@ -584,6 +579,44 @@ drop sequence if exists HIBERNATE_SEQUENCE;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID int8 not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float4,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float4,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID int8 not null,
MEDIA_QUERY_ID int8,
STYLE_ID int8,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID int8 not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID int8,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID int8 not null,
SELECTOR varchar(2048),
STYLE_ID int8,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID int8 not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA oid,
@ -849,21 +882,6 @@ create sequence hibernate_sequence start 1 increment 1;
foreign key (OBJECT_ID)
references CCM_CORE.CATEGORY_DOMAINS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKeiqh69t1lr7u09hjuxfyxsbs
foreign key (COMPONENT_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FLEX_LAYOUT_BOXES
add constraint FKmrobhhqidcf1657ugcgatrd0y
foreign key (LAYOUT_ID)
references CCM_CORE.FLEX_LAYOUT_COMPONENTS;
alter table CCM_CORE.FLEX_LAYOUT_COMPONENTS
add constraint FK8qxnqt75ikxtedx0xreoeiygg
foreign key (COMPONENT_MODEL_ID)
references CCM_CORE.PAGE_MODEL_COMPONENT_MODELS;
alter table CCM_CORE.FORMBUILDER_COMPONENT_DESCRIPTIONS
add constraint FKfh0k9lj3pf4amfc9bbbss0tr1
foreign key (COMPONENT_ID)
@ -1065,10 +1083,20 @@ create sequence hibernate_sequence start 1 increment 1;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -1204,6 +1232,26 @@ create sequence hibernate_sequence start 1 increment 1;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)

View File

@ -8,6 +8,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create schema CCM_SHORTCUTS;
create table CCM_CORE.APPLICATIONS (
APPLICATION_TYPE varchar(1024) not null,
PRIMARY_URL varchar(1024) not null,
@ -400,10 +401,20 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
CONTAINER_ID bigint,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID bigint not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID bigint,
STYLE_ID bigint,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID bigint not null,
LOCALIZED_VALUE varchar(2147483647),
@ -532,11 +543,11 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
SETTING_ID bigint not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_DOUBLE double,
SETTING_VALUE_LONG bigint,
SETTING_VALUE_BIG_DECIMAL decimal(19,2),
SETTING_VALUE_BOOLEAN boolean,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_LONG bigint,
SETTING_VALUE_DOUBLE double,
primary key (SETTING_ID)
);
@ -571,6 +582,44 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID bigint not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID bigint not null,
MEDIA_QUERY_ID bigint,
STYLE_ID bigint,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID bigint not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID bigint,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID bigint not null,
SELECTOR varchar(2048),
STYLE_ID bigint,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID bigint not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA blob,
@ -754,7 +803,6 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
alter table CCM_SHORTCUTS.SHORTCUTS
add constraint UK_4otuwtog6qqdbg4e6p8xdpw8h unique (URL_KEY);
create sequence hibernate_sequence start with 1 increment by 1;
alter table CCM_CORE.APPLICATIONS
@ -1043,10 +1091,20 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -1182,6 +1240,26 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)

View File

@ -8,6 +8,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create schema CCM_SHORTCUTS;
create table CCM_CORE.APPLICATIONS (
APPLICATION_TYPE varchar(1024) not null,
PRIMARY_URL varchar(1024) not null,
@ -400,10 +401,20 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
MODEL_UUID varchar(255) not null,
STYLE_ATTRIBUTE varchar(1024),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
CONTAINER_ID int8,
primary key (COMPONENT_MODEL_ID)
);
create table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS (
CONTAINER_ID int8 not null,
CONTAINER_UUID varchar(255) not null,
CONTAINER_KEY varchar(255),
UUID varchar(255) not null,
PAGE_MODEL_ID int8,
STYLE_ID int8,
primary key (CONTAINER_ID)
);
create table CCM_CORE.PAGE_MODEL_DESCRIPTIONS (
PAGE_MODEL_ID int8 not null,
LOCALIZED_VALUE text,
@ -532,11 +543,11 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
SETTING_ID int8 not null,
CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_DOUBLE float8,
SETTING_VALUE_LONG int8,
SETTING_VALUE_BIG_DECIMAL numeric(19, 2),
SETTING_VALUE_BOOLEAN boolean,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_LONG int8,
SETTING_VALUE_DOUBLE float8,
primary key (SETTING_ID)
);
@ -571,6 +582,44 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
primary key (OBJECT_ID)
);
create table CCM_CORE.STYLE_MEDIA_QUERIES (
MEDIA_QUERY_ID int8 not null,
MAX_WIDTH_UNIT varchar(255),
MAX_WIDTH_VALUE float4,
MEDIA_TYPE varchar(255),
MIN_WIDTH_UNIT varchar(255),
MIN_WIDTH_VALUE float4,
primary key (MEDIA_QUERY_ID)
);
create table CCM_CORE.STYLE_MEDIA_RULES (
MEDIA_RULE_ID int8 not null,
MEDIA_QUERY_ID int8,
STYLE_ID int8,
primary key (MEDIA_RULE_ID)
);
create table CCM_CORE.STYLE_PROPERTIES (
PROPERTY_ID int8 not null,
NAME varchar(256),
PROPERTY_VALUE varchar(4096),
RULE_ID int8,
primary key (PROPERTY_ID)
);
create table CCM_CORE.STYLE_RULES (
RULE_ID int8 not null,
SELECTOR varchar(2048),
STYLE_ID int8,
primary key (RULE_ID)
);
create table CCM_CORE.STYLES (
STYLE_ID int8 not null,
STYLENAME varchar(255),
primary key (STYLE_ID)
);
create table CCM_CORE.THEME_DATA_FILES (
CREATION_DATE timestamp,
FILE_DATA oid,
@ -754,7 +803,6 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
alter table CCM_SHORTCUTS.SHORTCUTS
add constraint UK_4otuwtog6qqdbg4e6p8xdpw8h unique (URL_KEY);
create sequence hibernate_sequence start 1 increment 1;
alter table CCM_CORE.APPLICATIONS
@ -1043,10 +1091,20 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
references CCM_CORE.USERS;
alter table CCM_CORE.PAGE_MODEL_COMPONENT_MODELS
add constraint FKo696ch035fe7rrueol1po13od
add constraint FK1uvkayybawff8sqkmerqt60bk
foreign key (CONTAINER_ID)
references CCM_CORE.PAGE_MODEL_CONTAINER_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FK1c6drneacxveol92vpum79fxb
foreign key (PAGE_MODEL_ID)
references CCM_CORE.PAGE_MODELS;
alter table CCM_CORE.PAGE_MODEL_CONTAINER_MODELS
add constraint FKoi5wphv3vtwryc19akku28p24
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.PAGE_MODEL_DESCRIPTIONS
add constraint FKcc5d6eqxu1369k8ycyyt6vn3e
foreign key (PAGE_MODEL_ID)
@ -1182,6 +1240,26 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
foreign key (OBJECT_ID)
references CCM_CORE.CCM_OBJECTS;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKdq24a4atxp4c1sbqs8g6lpkx0
foreign key (MEDIA_QUERY_ID)
references CCM_CORE.STYLE_MEDIA_QUERIES;
alter table CCM_CORE.STYLE_MEDIA_RULES
add constraint FKf67h8q9kkjft9go2xo2572n17
foreign key (STYLE_ID)
references CCM_CORE.STYLES;
alter table CCM_CORE.STYLE_PROPERTIES
add constraint FKg2g0n7jmce3vjmula0898yp94
foreign key (RULE_ID)
references CCM_CORE.STYLE_RULES;
alter table CCM_CORE.STYLE_RULES
add constraint FKf6fb4k6y2d74p70ldmj8awqj3
foreign key (STYLE_ID)
references CCM_CORE.STYLE_MEDIA_RULES;
alter table CCM_CORE.THEME_DATA_FILES
add constraint FK630m2y2p7pp487ofowbefrm89
foreign key (FILE_ID)