Project

General

Profile

Actions

Bug #53750

closed

Scheduler extension sql file is invalid

Added by Michiel Roos over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
Start date:
2013-11-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The ext_tables.sql file of the scheduler extension is invalid.

On import into MySQL, an error is thrown and MySQL refuses to create the table:

ERROR 1067 (42000) at line 4: Invalid default value for 'uid'

This is due to the fact that a default value is being set for an auto_increment field.

This line:
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,

Should read:
uid int(11) unsigned NOT NULL auto_increment,


Files

bugfix_53750.diff (565 Bytes) bugfix_53750.diff Michiel Roos, 2013-11-19 09:57
Actions #2

Updated by Markus Klein over 10 years ago

  • Status changed from New to Accepted

Hi Michiel!

Since this does work on all other installations, I suspect that you've some special MySQL settings (maybe some sort of strict mode).

Nevertheless the SQL does not look right. Can you push the patch to Gerrit?

Actions #3

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25502

Actions #4

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25502

Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25502

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25505

Actions #7

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25506

Actions #8

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_4-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25507

Actions #9

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_4-5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25508

Actions #10

Updated by Michiel Roos over 10 years ago

In version 6.2 this issue has also spread too the tx_scheduler_task_group table definition in the same file.

Besides that, the core is clean:

for f in `find ./ -type f -name *.sql`; do echo $f; grep auto_increment $f | grep DEFAULT; done;

Actions #11

Updated by Michiel Roos over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF