MSSQL Status in OC6 s unknown
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
So what do you want to tell us here? What has to be done to test and fix it?
@DeepDiver1975 What else is missing to close this?
@DeepDiver1975 What else is missing to close this?
There are still some unit tests failing on mssql - I'll prepare a report tomorrow
ping :-)
You know ... expect one or two fixes on the weekend :wink:
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 ....
This is the PR: #6138 right? (just for crossreference)
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.
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 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
Thanks a lot guys for working on that.
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.
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 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.
@DeepDiver1975 This is fixed now on master? - Right?
we are in a kind of good shape for oc8 - partially -> close