[TYPO3-german] ext_tables.sql wird ignoriert

Mikel lists at con-version.com
Fri Oct 27 15:27:42 CEST 2017


Du musst den PRIMARY_KEY noch setzen.

CREATE TABLE tx_test_ext (
 uid int(11) NOT NULL auto_increment,
 pid int(11) DEFAULT '0' NOT NULL,
 tx_testExt_header1 text,
 tx_testExt_header2 text,
 tx_testExt_subtext_top text,
 tx_testExt_subtext_middle text,
 tx_testExt_subtext_bottom text,
 
 PRIMARY KEY (uid),
 KEY parent (pid)
 
);
Zudem habe ich festgestellt, dass TYPO3 einen SQL-Fehler sieht, wenn mehrere SQL-Statements nacheinander stehen, ohne, dass diese kommentiert sind.
Dies kann auch ein Bug sein. Ist mir zuvor auch nie aufgefallen.
Du musst also entweder dein auskommentiertes Statement entfernen oder über jedes einzelne Statement einen Kommentar einbauen.
Wie gesagt, keine Ahnung, ob das ein Bug oder eine Konvention in 8.7 ist. Habe das nie bemerkt, da ich die Kommentare immer einbaue :-)

#
# Table structure for table 'tx_test_ext'
#
CREATE TABLE tx_test_ext (
 uid int(11) NOT NULL auto_increment,
 pid int(11) DEFAULT '0' NOT NULL,
 tx_testExt_header1 text,
 tx_testExt_header2 text,
 tx_testExt_subtext_top text,
 tx_testExt_subtext_middle text,
 tx_testExt_subtext_bottom text,

 PRIMARY KEY (uid),
 KEY parent (pid)

);

#
# Table structure for table 'tt_content'
#
/*CREATE TABLE tt_content (
 tx_testExt_header1 tinytext,
 tx_testExt_header2 tinytext,
 tx_testExt_subtext_top tinytext,
 tx_testExt_subtext_middle tinytext,
 tx_testExt_subtext_bottom tinytext
);*/



More information about the TYPO3-german mailing list