Project

General

Profile

Actions

Bug #17856

closed

DB compare fails

Added by Steffen Kamper over 16 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-11-27
Due date:
% Done:

0%

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

Description

many users noticed that EM gives update warning though field definition is equal to existing field. You see it with a "UPDATE NEEDED", eg:

ALTER TABLE fe_groups CHANGE felogin_redirectPid felogin_redirectPid tinytext;
Current value: tinytext

The comparison fails because of missing trim

(issue imported from #M6844)


Files

20071127_dbcompare.diff (849 Bytes) 20071127_dbcompare.diff Administrator Admin, 2007-11-27 19:01
ScreenHunter_2.jpg (26.9 KB) ScreenHunter_2.jpg Administrator Admin, 2007-12-03 09:28
Actions #1

Updated by Alois Baule over 16 years ago

There's also another error:
DB-Compare complains about a difference between field definition in tables.sql and the real database fields - although they are identical:
e.q. a field definition in tables.sql:
tx_sfadvancedworkspaces_wshighlight_color varchar(30) DEFAULT '' NOT NULL,
The database field is also defined as "NOT NULL", but in the attachment you see the output from DB compare (Screen_Hunter2.jpg).

Actions #2

Updated by Steffen Kamper over 16 years ago

remove NOT NULL from tables.sql and compare works fine.

btw - with attached patch this works fine also with "NOT NULL" in definition.

Actions #3

Updated by Dmitry Dulepov over 16 years ago

Revisions:
TYPO3 4.2: r2796
TYPO3 4.1: r2797

Actions

Also available in: Atom PDF