Skip to content

the path of a mount config may be an empty string, which requires a nullable column on oracle#25765

Closed
butonic wants to merge 1 commit into
masterfrom
emptystringrequiresnullablecolumnsonoracleforgodssake
Closed

the path of a mount config may be an empty string, which requires a nullable column on oracle#25765
butonic wants to merge 1 commit into
masterfrom
emptystringrequiresnullablecolumnsonoracleforgodssake

Conversation

@butonic

@butonic butonic commented Aug 10, 2016

Copy link
Copy Markdown
Contributor

without this files_external is broken on oracle

@mention-bot

Copy link
Copy Markdown

@butonic, thanks for your PR! By analyzing the annotation information on this pull request, we identified @icewind1991, @nickvergessen and @Xenopathic to be potential reviewers

@butonic

butonic commented Aug 10, 2016

Copy link
Copy Markdown
Contributor Author

cc @PVince81 because he wanted me to give him oracle

@butonic butonic changed the title the path of a meunt config may be an empty string, which requires a nullable column on oracle the path of a mount config may be an empty string, which requires a nullable column on oracle Aug 10, 2016
@butonic butonic force-pushed the emptystringrequiresnullablecolumnsonoracleforgodssake branch from 0c8071d to bca0b42 Compare August 11, 2016 14:45
@PVince81

Copy link
Copy Markdown
Contributor

Since you changed the structure, we need to increase version.php

@butonic butonic force-pushed the emptystringrequiresnullablecolumnsonoracleforgodssake branch from bca0b42 to c9a944f Compare August 17, 2016 12:46
@butonic

butonic commented Aug 17, 2016

Copy link
Copy Markdown
Contributor Author

oh great, doctrine does not correctly generate the SQL. It wants to do

ALTER TABLE "oc_external_config" MODIFY ("config_id" NUMBER(20) DEFAULT NULL, "value" CLOB DEFAULT NULL NULL)

which leads to

SQL-Fehler: ORA-22296: Ungültige Option ALTER TABLE für Konvertierung von Datentyp LONG in LOB
22296. 00000 -  "invalid ALTER TABLE option for conversion of LONG datatype to LOB"
*Cause:    An attempt was made to specify ALTER TABLE options which are
           disallowed during conversion of LONG datatype to LOB. The only ALTER
           TABLE options allowed during conversion of LONG datatype to LOB are
           the default clause and LOB storage clause for the column being
           converted to LOB.
*Action:   Remove the disallowed options.

changing the config_id column is totally useless and regarding the ALTER for CLOB see http://stackoverflow.com/a/7443301

it should just be

ALTER TABLE "oc_external_config" MODIFY "value" NULL

@DeepDiver1975 @PVince81 we need that different shema update mechanism ...

@PVince81

Copy link
Copy Markdown
Contributor

Yeah, it's not the first time. Last time we had to add specific tweaks to make it accept adding autoincrement on columns.

@DeepDiver1975

Copy link
Copy Markdown
Member

Doctrine migrations .... Doctrine migrations ... Doctrine migrations ...

@PVince81

Copy link
Copy Markdown
Contributor

Doctrine migrations .... Doctrine migrations ... Doctrine migrations ...

Time to revive ?

@PVince81

Copy link
Copy Markdown
Contributor

needs rewrite, the tables were moved to core and are using a doctrine migration for their creation

@PVince81

Copy link
Copy Markdown
Contributor

conflicts

since this is inactive I'm moving this to triage to reconsider priority

@PVince81 PVince81 modified the milestones: triage, 10.0 Jun 29, 2017
@PVince81

PVince81 commented Jul 4, 2017

Copy link
Copy Markdown
Contributor

obsolete, please rewrite this with a migration in a separate PR

@PVince81 PVince81 closed this Jul 4, 2017
@PVince81 PVince81 deleted the emptystringrequiresnullablecolumnsonoracleforgodssake branch July 4, 2017 14:18
@felixboehm felixboehm removed this from the triage milestone Apr 10, 2018
@lock

lock Bot commented Jul 31, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants