? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
8 Jan 2017

Pull Request for Issue #13509 (part) and probably other issues relating finder tables in more strict db systems (which in joomla 4.0 mysql will be also).

Summary of Changes

Normalize the #__finder_* table across db systems.
Only tested in mysql.
@waader please check mssql
@alikon please also check postgresql and mssql.

Testing Instructions

  1. SQL code review
  2. Test update: Apply patch, manually run the sql query for your Db system, confirm db table, confirm all fine
  3. Test install: apply patch, delete configuration.php do a normal install, confirm db table, confirm all fine

Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 8 Jan 2017
avatar andrepereiradasilva andrepereiradasilva - change - 8 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2017
Category SQL Administration com_admin Postgresql MS SQL Installation
avatar andrepereiradasilva andrepereiradasilva - change - 8 Jan 2017
Labels Added: ?
avatar waader
waader - comment - 8 Jan 2017

Should the alter statements for mssql no be formed like in 3.1.0.sql so we would have for example

ALTER TABLE [#__finder_filters] ADD DEFAULT ('') FOR [title];

instead of

ALTER TABLE #__finder_filters MODIFY title varchar(255) NOT NULL DEFAULT '';

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jan 2017

don't know the best query in mssql
if you confirm me that ALTER TABLE [#__finder_filters] ADD DEFAULT '' FOR [title]; work on mssql i can change.

But there are also cases like removing NULL, setting NOT NULLand adding DEFAULT '' in the same field.
See https://github.com/joomla/joomla-cms/pull/13517/files#diff-1afe140cec5b5f3c972a51ee6b46e110R2093

avatar csthomas
csthomas - comment - 23 Feb 2017

@andrepereiradasilva Are you available to fix conflict/rebase all and change mssql file?
mssql sql file should be change as @waader say.

Take a look at #14102

About *weight: Current mysql uses 0 as DEFAULT implicitly.

avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Removed:
avatar Hackwar
Hackwar - comment - 21 May 2018

Thank you for these optimisations. Considering that there has been no response by @andrepereiradasilva, I will try to create a new PR from this. I also noticed that the language columns are not unified with the rest of the language columns of Joomla. I would aim that new PR against the 4.0-dev branch. Can I be assigned to this issue, so that I don't forget?

avatar brianteeman
brianteeman - comment - 21 May 2018

@Hackwar thanks - @andrepereiradasilva is no longer available and that is why this pr is flagged "needs a new owner"

avatar Hackwar
Hackwar - comment - 23 May 2018

New PR is here: #20561

avatar Quy Quy - change - 23 May 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-05-23 21:19:54
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2018
Closed_Date 2018-05-23 21:19:54 2018-05-23 21:19:55
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 23 May 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 23 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/13517

Add a Comment

Login with GitHub to post a comment