? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
8 Mar 2017

Pull Request for Issue #14331 .

Summary of Changes

managed DROP DEFAULT on JSchemaChangeitem for postgresql

Testing Instructions

With latest staging on postgresql go to Manage > Database.

Expected result

no notice

Actual result

Notice: Undefined offset:

avatar alikon alikon - open - 8 Mar 2017
avatar alikon alikon - change - 8 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2017
Category Postgresql SQL Administration com_admin
avatar waader waader - test_item - 8 Mar 2017 - Tested successfully
avatar waader
waader - comment - 8 Mar 2017

I have tested this item successfully on 2e35e03

Thanks alikon!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14423.

avatar csthomas
csthomas - comment - 8 Mar 2017

IMO this is the wrong solution. We can not remove DROP DEFAULT from update files.

We have to fix php code in https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/schema/changeitem/postgresql.php#L132
I suppose that reverse the order of elseif
with
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/schema/changeitem/postgresql.php#L111
would solve the problem.

avatar alikon
alikon - comment - 9 Mar 2017

could be i've checked rather quickly,
but why

We can not remove DROP DEFAULT from update files.

avatar csthomas
csthomas - comment - 9 Mar 2017
  • because drop default - in general this is not a solution but only temporary fix, we do not want to remove all "DROP DEFAULT ..." from sql updates files.
  • because other databases does not have default too
  • because bug is in the file mentioned by me earlier, not in sql updates files.
avatar alikon
alikon - comment - 10 Mar 2017

i've just looked at #__contact_details and
ALTER TABLE "#__contact_details" ALTER COLUMN "name" DROP DEFAULT;
even if for me is not needed (DROP DEFAULT) , i agree with you should be correctly managed by changeitem for postgresql

avatar alikon alikon - change - 10 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2017
Category Postgresql SQL Administration com_admin Postgresql SQL Administration com_admin Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2017
Category Postgresql SQL Administration com_admin Libraries Libraries
avatar waader waader - test_item - 28 Mar 2017 - Tested successfully
avatar waader
waader - comment - 28 Mar 2017

I have tested this item successfully on 0aae960


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14423.

avatar alikon alikon - change - 13 Jun 2017
The description was changed
avatar alikon alikon - edited - 13 Jun 2017
avatar rdeutz rdeutz - assigned - 22 Jun 17
avatar alikon
alikon - comment - 2 Nov 2017

conflict fixed in #18483

avatar alikon alikon - change - 2 Nov 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-11-02 19:41:32
Closed_By alikon
avatar alikon alikon - close - 2 Nov 2017

Add a Comment

Login with GitHub to post a comment