-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_tables.sql
30 lines (25 loc) · 970 Bytes
/
ext_tables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CREATE TABLE tx_taxonomy_domain_model_vocabulary
(
title varchar(255) DEFAULT '' NOT NULL,
name varchar(50) DEFAULT '' NOT NULL,
rowDescription text,
KEY idx_name(name)
);
CREATE TABLE tx_taxonomy_domain_model_term
(
title varchar(255) DEFAULT '' NOT NULL,
vocabulary int (11) DEFAULT '0' NOT NULL,
parent int (11) DEFAULT '0' NOT NULL,
items int (11) DEFAULT '0' NOT NULL,
KEY idx_vocabulary(vocabulary)
);
CREATE TABLE tx_taxonomy_domain_model_term_record_mm
(
-- We have to require those fields explicitely, until the dynamic TCA requires it
-- with the first call to TaxonomyTcaUtility::addTaxonomy*
uid_local int unsigned DEFAULT '0' NOT NULL,
uid_foreign int unsigned DEFAULT '0' NOT NULL,
tablenames varchar(64) DEFAULT '' NOT NULL,
fieldname varchar(64) DEFAULT '' NOT NULL,
PRIMARY KEY (uid_local, uid_foreign, tablenames, fieldname)
);