代码之家  ›  专栏  ›  技术社区  ›  Felix

激活typo3 8扩展时出错

  •  0
  • Felix  · 技术社区  · 6 年前

    目前,我将typo3 6.2.31插件迁移到typo3 8.7。

    我已经做了8.7版的扩展工作所需的更改。

    #1476171315: [SQL Error] line 0, col 254: Error: Expected NOT, NULL, DEFAULT, AUTO_INCREMENT, UNIQUE, PRIMARY, COMMENT, COLUMN_FORMAT, STORAGE or REFERENCES, got 'tstamp' in statement: CREATE TABLE tx_shopextension_domain_model_crontab ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, id int(11) DEFAULT '0' NOT NULL, workflow_strategie varchar(255) DEFAULT '' NOT NULL, verarbeitet tinyint(4) DEFAULT '0' NOT NULL tstamp int(11) unsigned DEFAULT '0' NOT NULL, crdate int(11) unsigned DEFAULT '0' NOT NULL, cruser_id int(11) unsigned DEFAULT '0' NOT NULL, deleted tinyint(4) unsigned DEFAULT '0' NOT NULL, hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, starttime int(11) unsigned DEFAULT '0' NOT NULL, endtime int(11) unsigned DEFAULT '0' NOT NULL, t3ver_oid int(11) DEFAULT '0' NOT NULL, t3ver_id int(11) DEFAULT '0' NOT NULL, t3ver_wsid int(11) DEFAULT '0' NOT NULL, t3ver_label varchar(255) DEFAULT '' NOT NULL, t3ver_state tinyint(4) DEFAULT '0' NOT NULL, t3ver_stage int(11) DEFAULT '0' NOT NULL, t3ver_count int(11) DEFAULT '0' NOT NULL, t3ver_tstamp int(11) DEFAULT '0' NOT NULL, t3ver_move_id int(11) DEFAULT '0' NOT NULL, sys_language_uid int(11) DEFAULT '0' NOT NULL, l10n_parent int(11) DEFAULT '0' NOT NULL, l10n_diffsource mediumblob, PRIMARY KEY (uid), KEY parent (pid), KEY t3ver_oid (t3ver_oid,t3ver_wsid), KEY language (l10n_parent,sys_language_uid) )
    

    这个案子有什么问题?

    提前谢谢。

    1 回复  |  直到 6 年前
        1
  •  2
  •   David user10336229    6 年前

    在文件ext中_表.sql你有这样的定义:

    CREATE TABLE tx_shopextension_domain_model_crontab (
     uid int(11) NOT NULL auto_increment,
     pid int(11) DEFAULT '0' NOT NULL,
     id int(11) DEFAULT '0' NOT NULL,
     workflow_strategie varchar(255) DEFAULT '' NOT NULL,
     verarbeitet tinyint(4) DEFAULT '0' NOT NULL
     tstamp int(11) unsigned DEFAULT '0' NOT NULL,
     crdate int(11) unsigned DEFAULT '0' NOT NULL,
     cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
     deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
     hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
     starttime int(11) unsigned DEFAULT '0' NOT NULL,
     endtime int(11) unsigned DEFAULT '0' NOT NULL,
     t3ver_oid int(11) DEFAULT '0' NOT NULL,
     t3ver_id int(11) DEFAULT '0' NOT NULL,
     t3ver_wsid int(11) DEFAULT '0' NOT NULL,
     t3ver_label varchar(255) DEFAULT '' NOT NULL,
     t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
     t3ver_stage int(11) DEFAULT '0' NOT NULL,
     t3ver_count int(11) DEFAULT '0' NOT NULL,
     t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
     t3ver_move_id int(11) DEFAULT '0' NOT NULL,
     sys_language_uid int(11) DEFAULT '0' NOT NULL,
     l10n_parent int(11) DEFAULT '0' NOT NULL,
     l10n_diffsource mediumblob, PRIMARY KEY (uid),
     KEY parent (pid), KEY t3ver_oid (t3ver_oid,t3ver_wsid),
     KEY language (l10n_parent,sys_language_uid)
    );
    

    在那之后 verarbeitet tinyint(4) DEFAULT '0' NOT NULL