Project

General

Profile

Actions

Bug #18651

closed

Extension Manager does not recognize more than one foreign key

Added by Lucas over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2008-04-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When installing an extension, the extension manager, when creating the databse tables, does not recognize more than one foreign key per table.

(issue imported from #M8175)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #76636: Install Tool DB Analyzer is not aware of FOREIGN KEY constraintsClosed2016-06-15

Actions
Actions #1

Updated by Steffen Kamper over 16 years ago

can you give an example please? Any existing extension where this problem occurs?

Actions #2

Updated by Lucas over 16 years ago

Here you go:

CREATE TABLE tableWithForeignKeys (
field1 int(11) NOT NULL,
field2 int(11) NOT NULL,
FOREIGN KEY (field1) REFERENCES otherTable(field1) ON DELETE CASCADE,
FOREIGN KEY (field2) REFERENCES anotherTable(field2) ON DELETE CASCADE
) ENGINE=INNODB;

This is read by the EM in the following way:

CREATE TABLE tableWithForeignKeys (
field1 int(11) NOT NULL,
field2 int(11) NOT NULL,
FOREIGN KEY (field2) REFERENCES anotherTable(field2) ON DELETE CASCADE
) TYPE=INNODB;

And there is no extension I know of that has this problem. I've had this problem when writing an extension of my own.

Actions #3

Updated by Anja Leichsenring over 11 years ago

  • Status changed from New to Resolved
  • Target version deleted (0)

Resolved with #17160.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF