? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
31 Oct 2016

Pull Request for Issue #12624 .

Summary of Changes

  • MSSQL - update sql for Custom fields (#11833)
  • MSSQL - install sql for Custom fields (#11833)
  • MSSQL - update sql for Custom fields (#13091)
  • MSSQL - install sql for Custom fields (#13091)
  • MSSQL - update sql for Custom fields (#13115)
  • MSSQL - install sql for Custom fields (#13115)
  • MSSQL - update sql for Custom fields (#13175)
  • MSSQL - install sql for Custom fields (#13175)
  • MSSQL - update sql for Custom fields (#13246)
  • MSSQL - install sql for Custom fields (#13246)
avatar alikon alikon - open - 31 Oct 2016
avatar alikon alikon - change - 31 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Category MS SQL SQL Administration Components
avatar zero-24
zero-24 - comment - 31 Oct 2016

@alikon this just includes the update part is that correct / expected?

Also this is all in one line? is this expected too?

avatar zero-24 zero-24 - change - 31 Oct 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 31 Oct 2016
Milestone Added:
avatar alikon
alikon - comment - 31 Oct 2016

No, I'm having big connection issues, hope to solve soon i'll put install
file too, sorry...

On 31 Oct 2016 3:15 pm, "zero-24" notifications@github.com wrote:

@alikon https://github.com/alikon this jjust includes the update part
is that correct / expected?

Also this is all in one line? is this expected too?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12660 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALFseYWgpypxgDH7RwRdfDNjlLpPyDyks5q5fgQgaJpZM4KlDXf
.

avatar zero-24
zero-24 - comment - 31 Oct 2016

no problem. Thanks!

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Oct 2016

@alikon can you please add line endings

avatar alikon
alikon - comment - 31 Oct 2016

@andrepereiradasilva I'll complete this pr when I regain a stable
connection ;)

On 31 Oct 2016 3:57 pm, "andrepereiradasilva" notifications@github.com
wrote:

@alikon https://github.com/alikon can you please add line endings


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12660 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALFsVWAyEckp3pUJLs7zA2hYZ04JP4wks5q5f2vgaJpZM4KlDXf
.

avatar alikon
alikon - comment - 31 Oct 2016

can someone do a review or a test on MSSQL (cause i don't have a mssql environment available)

avatar laoneo
laoneo - comment - 1 Nov 2016

Had a discussion with @matrikular about the MSSQL scripts. Perhaps he can test it as well.

avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2016
Category MS SQL SQL Administration Components MS SQL SQL Administration com_admin Installation Components
avatar alikon
alikon - comment - 5 Dec 2016

updated for #13091

avatar alikon alikon - change - 5 Dec 2016
Title
MSSQL - update sql for Custom fields (#11833)
MSSQL - sql for Custom fields
Labels Removed: ? ?
avatar alikon alikon - edited - 5 Dec 2016
avatar alikon alikon - change - 5 Dec 2016
Title
MSSQL - update sql for Custom fields (#11833)
MSSQL - sql for Custom fields
avatar laoneo
laoneo - comment - 6 Dec 2016

Can you add the "[com_fields]" to the beginning of the title? People start asking about open pull requests and I'm telling them that they have to search for com_fields. Thanks.

avatar Bakual Bakual - change - 6 Dec 2016
Title
MSSQL - sql for Custom fields
[com_fields] MSSQL - sql for Custom fields
avatar Bakual Bakual - edited - 6 Dec 2016
avatar Bakual Bakual - change - 6 Dec 2016
Title
MSSQL - sql for Custom fields
[com_fields] MSSQL - sql for Custom fields
avatar Bakual
Bakual - comment - 6 Dec 2016

Adjusted the title

avatar alikon alikon - edited - 7 Dec 2016
avatar alikon
alikon - comment - 7 Dec 2016

updated for #13115

avatar waader
waader - comment - 8 Dec 2016

There is a missing comma at the end of this line
[language] nvarchar NOT NULL DEFAULT ''
in both files.

With this change installation and update went fine.

I also applied #13115 but when creating a new fields group I get this sql error:

Microsoft][SQL Server Native Client 11.0][SQL Server]No column name was specified for column 1 of 'A'. SQL=SELECT * FROM ( SELECT count(id) , ROW_NUMBER() OVER (ORDER BY (select 0)) AS RowNumber FROM #__usergroups) A WHERE A.RowNumber BETWEEN 1 AND 1

But this is something for another patch, right?

avatar laoneo
laoneo - comment - 8 Dec 2016

@waader thank you very much for testing. @alikon can you update the code please?

avatar alikon alikon - change - 8 Dec 2016
The description was changed
avatar alikon
alikon - comment - 8 Dec 2016

thanks @waader for testing, and yes please open a new issue for that

avatar waader
waader - comment - 8 Dec 2016

Installation works now but at Extensions > Manage > Database you will find:

Table 'tf7qr_fields( id' does not exist. (From file 3.7.0-2016-08-29.sql.)
Table 'tf7qr_fields_groups( id' does not exist. (From file 3.7.0-2016-08-29.sql.)
Table 'tf7qr_fields_values( field_id' does not exist. (From file 3.7.0-2016-08-29.sql.)

When updating an older joomla version you will find the same messages but also an error that indicates that com_fields could not be loaded.

A Click on Discover shows this error:
515 [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'custom_data', table 'joomla35.dbo.#__extensions'; column does not allow nulls. INSERT fails. SQL=INSERT INTO [#__extensions] ([name],[type],[element],[folder],[client_id],[access],[manifest_cache],[params],[state]) VALUES ('com_fields','component','com_fields','','1','1','{"name":"com_fields","type":"component","creationDate":"March 2016","author":"Joomla! Project","copyright":"(C) 2005 - 2016 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"DEPLOY_VERSION","description":"COM_FIELDS_XML_DESCRIPTION","group":"","filename":"fields"}','{}','-1')

avatar alikon
alikon - comment - 9 Dec 2016

I suspect that this is unrelated from com_fields, can you can confirm discovering another extension

avatar waader
waader - comment - 13 Dec 2016

I have tested this item successfully on db9cce5

@alikon: you are right. Has nothing to do with your patch. Thanks!


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

avatar waader waader - test_item - 13 Dec 2016 - Tested successfully
avatar laoneo
laoneo - comment - 13 Dec 2016

I guess this one here can be merged as it is unlikely we will find another person who is testing it on MSSQL.

avatar mbabker
mbabker - comment - 13 Dec 2016

Actually, if you spin up Ubuntu 16.04 you can run SQL Server from there now. https://www.microsoft.com/en-us/sql-server/developer-get-started/php-ubuntu

Same with Red Hat - https://www.microsoft.com/en-us/sql-server/developer-get-started/php-rhel

avatar Bakual
Bakual - comment - 13 Dec 2016

If I find someone to move my Crowdin scripts from my private server to Joomla property, I would be happy to spin up a new server and try that out :)

avatar alikon alikon - change - 19 Dec 2016
The description was changed
avatar alikon alikon - edited - 19 Dec 2016
avatar alikon
alikon - comment - 19 Dec 2016

updated for #13175

avatar laoneo
laoneo - comment - 19 Dec 2016

@alikon you are fast. Just wanted to write a notice, that the structure of com_fields changed again and saw that you did it already ? . Good work.

avatar alikon alikon - edited - 21 Dec 2016
avatar alikon
alikon - comment - 21 Dec 2016

updated for #13246

avatar csthomas
csthomas - comment - 4 Jan 2017

I have tested it on backend and it is OK.

Why there is a few difference between sql install and update file?

joomla_sql_diff

avatar zero-24
zero-24 - comment - 5 Jan 2017

The install and update file need to be equal as we need everything (tables etc.) also on sites that got updated to 3.7.0 :)

avatar alikon
alikon - comment - 5 Jan 2017

fixed the missed default

avatar csthomas
csthomas - comment - 5 Jan 2017

After I patched by Patch Tester a see (it is incorrect - table name should not contain column name):

Table 'j37_fields( id' does not exist. (From file 3.7.0-2016-08-29.sql.)
Table 'j37_fields_categories(  field_id' does not exist. (From file 3.7.0-2016-08-29.sql.)
Table 'j37_fields_groups( id' does not exist. (From file 3.7.0-2016-08-29.sql.)
Table 'j37_fields_values( field_id' does not exist. (From file 3.7.0-2016-08-29.sql.)

After I click FIX the tables are created and fields work OK.

But I still see above warnings.

Please add white space before '(':

CREATE TABLE [#__fields](

replace to:

CREATE TABLE [#__fields] (

and for others "CREATE TABLE" do the same.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12660.
avatar alikon
alikon - comment - 5 Jan 2017

@csthomas added the space, but all other existing CREATE TABLE don't have that space
anyway thanks for testing

avatar csthomas
csthomas - comment - 5 Jan 2017

I have tested this item successfully on 6fad1a2

Because of some regex in database fix in component installer "CREATE TABLE" requires space.
It is only needed in update sql files:)

Success.

Database schema version (in #__schemas): 3.7.0-2016-11-24.
Update version (in #__extensions): 3.7.0-alpha2.
Database driver: sqlsrv.
12 database changes were checked successfully.
225 database changes did not alter table structure and were skipped.

Because the last two commits add only white spaces and " DEFAULT ''" which exists in the install sql file
IMO it can be merged without additional test.


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

avatar csthomas csthomas - test_item - 5 Jan 2017 - Tested successfully
avatar alikon
alikon - comment - 5 Jan 2017

Because of some regex in database fix in component installer "CREATE TABLE" requires space.
It is only needed in update sql files

we need to remeber this when we will update some others on MSSQL

avatar laoneo
laoneo - comment - 7 Jan 2017

Can a maintainer set this to RTC as we have a successful test on MSSQL.

avatar laoneo
laoneo - comment - 7 Jan 2017

There will be some more work then when pr #13319 got merged. But let's get this one in first.

avatar infograf768
infograf768 - comment - 7 Jan 2017

We have only one test as #12660 (comment) was done before changes

avatar laoneo
laoneo - comment - 7 Jan 2017

Honestly I'm not sure if we will find two testers for this.

avatar waader
waader - comment - 7 Jan 2017

I will test this one later today.

avatar alikon
alikon - comment - 7 Jan 2017

thanks @waader

avatar waader
waader - comment - 7 Jan 2017

I have tested this item successfully on 6fad1a2

I tested the backend with content, users and contacts and it works. Frontend is currently broken which has nothing to do with this patch. With a rudimentary fix I could get it working also in frontend.


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

avatar waader waader - test_item - 7 Jan 2017 - Tested successfully
avatar csthomas
csthomas - comment - 7 Jan 2017

You can try to test front end with applied #13262

avatar waader
waader - comment - 7 Jan 2017

I also did that, but it didn´t work.

avatar laoneo
laoneo - comment - 7 Jan 2017

Thanks for all the work guys!! Ready for RTC.

avatar jeckodevelopment jeckodevelopment - change - 7 Jan 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 7 Jan 2017

RTC


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

avatar Bakual Bakual - close - 7 Jan 2017
avatar Bakual Bakual - merge - 7 Jan 2017
avatar Bakual Bakual - change - 7 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-07 19:25:20
Closed_By Bakual

Add a Comment

Login with GitHub to post a comment