Skip to content

Doctrine MySqlPlatform can't enum type - #7679

Closed
bartv2 wants to merge 2 commits into
masterfrom
fix-6915-master
Closed

bartv2 wants to merge 2 commits into
masterfrom
fix-6915-master

Conversation

@bartv2

@bartv2 bartv2 commented Mar 11, 2014

Copy link
Copy Markdown
Contributor

This type is specific to MySql and not supported by doctrine and owncloud.
Other software using the same DB can have tables with this type, so we need
to handle this when reading the tables.

See also http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/mysql-enums.html
Fixes #6915
@DeepDiver1975 @PVince81

This type is specific to MySql and not supported by doctrine and owncloud.
Other software using the same DB can have tables with this type, so we need
to handle this when reading the tables.

See also http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/mysql-enums.html
Fixes #6915
@ghost

ghost commented Mar 11, 2014

Copy link
Copy Markdown

@PVince81

Copy link
Copy Markdown
Contributor

@bartv2 how to test ?

@bartv2

bartv2 commented Apr 4, 2014

Copy link
Copy Markdown
Contributor Author

in the owncloud database create a table with a enum type. Then start a database upgrade, incrementing the db version is enough

Conflicts:
	tests/lib/dbschema.php
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 1 new issues, 2 updated code elements

@ghost

ghost commented Apr 10, 2014

Copy link
Copy Markdown

@VicDeo

VicDeo commented Apr 28, 2014

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented Apr 28, 2014

Copy link
Copy Markdown

@PVince81

PVince81 commented May 6, 2014

Copy link
Copy Markdown
Contributor

@bantu @icewind1991 please review.

@bartv2 do you know of any app that uses enum that could be used to test ?

@icewind1991

Copy link
Copy Markdown
Contributor

Code makes sense 👍

@bartv2

bartv2 commented May 7, 2014

Copy link
Copy Markdown
Contributor Author

no app, i just created a table with a enum field

@flop25

flop25 commented Jun 4, 2014

Copy link
Copy Markdown

updated from 5.0.16, had the issue #8215 then gitted the core and apps, changed the config to the initial oc version, redid the update BUT still the issue
seems that the 00a8dc7 update didn't fix it

@bartv2

bartv2 commented Jun 5, 2014

Copy link
Copy Markdown
Contributor Author

@flop25 can you give some more information about the table that fails? also can you check if the unittest also fails for you?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

superseded by #9837 - THX @bartv2 for the fix

@DeepDiver1975
DeepDiver1975 deleted the fix-6915-master branch July 24, 2014 10:18
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database error when migrating from 6.0 to 6.0.1

7 participants