core icon indicating copy to clipboard operation
core copied to clipboard

MSSQL Status in OC6 s unknown

Open DeepDiver1975 opened this issue 13 years ago • 16 comments

Up to now I failed to properly setup mssql unit tests on the Jenkins windows box. Because of that we have no clue about the current status of mssql support within oc6

@karlitschek @MTRichards FYI

DeepDiver1975 avatar Oct 30 '13 20:10 DeepDiver1975

So what do you want to tell us here? What has to be done to test and fix it?

karlitschek avatar Oct 30 '13 22:10 karlitschek

@DeepDiver1975 What else is missing to close this?

karlitschek avatar Nov 13 '13 18:11 karlitschek

@DeepDiver1975 What else is missing to close this?

There are still some unit tests failing on mssql - I'll prepare a report tomorrow

DeepDiver1975 avatar Nov 13 '13 22:11 DeepDiver1975

ping :-)

karlitschek avatar Nov 29 '13 16:11 karlitschek

You know ... expect one or two fixes on the weekend :wink:

DeepDiver1975 avatar Nov 29 '13 16:11 DeepDiver1975

our schema migration unit test fails due to an issue within doctrine: http://www.doctrine-project.org/jira/browse/DBAL-512

.... and some quoting issues - pr arriving ....

DeepDiver1975 avatar Dec 01 '13 12:12 DeepDiver1975

This is the PR: #6138 right? (just for crossreference)

MorrisJobke avatar Dec 04 '13 13:12 MorrisJobke

I'm not sure http://www.doctrine-project.org/jira/browse/DBAL-512 is related. We're not (so far as I've seen, but I could be wrong) using the IDENTITY keyword. We are trying to set a new default value on a field, which MSSQL can't do in the same ALTER TABLE line that MySQL can. It's a Doctrine issue to be sure, but possibly not that one.

ringmaster avatar Dec 04 '13 15:12 ringmaster

It seems that fixing MSSQL migration will require upstream fixes to Doctrine, specifically splitting this line into two SQL statements (one for the column alter, one for the column default value).

How should this proceed?

ringmaster avatar Dec 09 '13 15:12 ringmaster

@ringmaster let's create a branch in 3rdparty where we import a newer version of doctrine and let's run the unit tests against it

@bantu @bartv2 any objections

@karlitschek FYI

DeepDiver1975 avatar Dec 09 '13 16:12 DeepDiver1975

Thanks a lot guys for working on that.

karlitschek avatar Dec 09 '13 16:12 karlitschek

Was anything weird/special done to Doctrine when we imported it last? @bartv2, I'm looking at you, since logs say you did the last Doctrine import.

Just checking, preemptively, while I branch some stuff locally to prep for this.

ringmaster avatar Dec 09 '13 16:12 ringmaster

Bah, so close.

An exception occurred while executing 'ALTER TABLE [oc_filecache] ADD storage_mtime INT NOT NULL': SQLSTATE[42000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified, or the column being added is an identity or timestamp column, or alternatively if none of the previous conditions are satisfied the table must be empty to allow addition of this column. Column 'storage_mtime' cannot be added to non-empty table 'oc_filecache' because it does not satisfy these conditions.

Still, progress...

ringmaster avatar Dec 09 '13 22:12 ringmaster

@ringmaster I fixed some bugs in doctrine after the import, not sure which are fixed in the newer releases. But there were no changes for sqlsrv.

bartv2 avatar Dec 13 '13 16:12 bartv2

@DeepDiver1975 This is fixed now on master? - Right?

LukasReschke avatar Nov 26 '14 13:11 LukasReschke

we are in a kind of good shape for oc8 - partially -> close

DeepDiver1975 avatar Nov 26 '14 15:11 DeepDiver1975