Project

General

Profile

Actions

Bug #51090

closed

SQL parser does not analyse NOT NULL in extension SQL files

Added by Tobias Klepp over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
Start date:
2013-08-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If I start the database analyzer in the install tool, the SQL parser didn't analyse the NULL attribute of the tables.

In ext_tables.sql there are the following example definition:

#
# Table structure for table 'tx_extkey_tablename'
#
CREATE TABLE tx_extkey_tablename (
  uid int(11) NOT NULL auto_increment,
  pid int(11) DEFAULT '0' NOT NULL,
  tstamp int(11) DEFAULT '0' NOT NULL,
  crdate int(11) DEFAULT '0' NOT NULL,
  cruser_id int(11) DEFAULT '0' NOT NULL,
  deleted tinyint(4) DEFAULT '0' NOT NULL,
  hidden tinyint(4) DEFAULT '0' NOT NULL,
  title varchar(150) DEFAULT '' NOT NULL,
  example tinyint(4) DEFAULT '0' NOT NULL,

  PRIMARY KEY (uid),
  KEY parent (pid)
);

In the database the structure looks like this:

#
# Table structure for table 'tx_extkey_tablename'
#
CREATE TABLE tx_extkey_tablename (
  uid int(11) NOT NULL auto_increment,
  pid int(11) DEFAULT '0' NOT NULL,
  tstamp int(11) DEFAULT '0' NOT NULL,
  crdate int(11) DEFAULT '0' NOT NULL,
  cruser_id int(11) DEFAULT '0' NOT NULL,
  deleted tinyint(4) DEFAULT '0' NOT NULL,
  hidden tinyint(4) DEFAULT '0' NOT NULL,
  title varchar(150) DEFAULT '' NOT NULL,
  example tinyint(4) DEFAULT '0',

  PRIMARY KEY (uid),
  KEY parent (pid)
);

The database analyzer say, that everything is ok. Nothing to do. But that's not true.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64616: Compare Database does not remove 'NOT NULL'Closed2015-01-29

Actions
Actions #1

Updated by Mathias Schreiber over 9 years ago

  • Target version changed from next-patchlevel to 7.4 (Backend)
Actions #2

Updated by Susanne Moog almost 9 years ago

  • Category changed from Install Tool to 1601
Actions #3

Updated by Morton Jonuschat almost 9 years ago

  • Assignee set to Morton Jonuschat
  • Is Regression set to No
Actions #4

Updated by Morton Jonuschat over 8 years ago

  • Status changed from New to Resolved

This has been resolved through issue #64616, applied in Changeset 47bdb4f81566de9e12997d3c3c31694658baae65

Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF