Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix: postgresql migration #2701

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Conversation

backportbot-libresign[bot]
Copy link

Backport of PR #2699

Prevent the follow error to migrate varchar to json using PostgreSQL:

You might need to specify "USING metadata::json"

Is necessary to cast column and Doctrine dbal don't do this neither
Nextcloud.

ref: https://stackoverflow.com/questions/60093238/alter-column-varchar-to-json-in-psql

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
This method is used to get the type of column, when is creating the
table, will return wrong value. If is creating all tables, Doctrine
don't will run step by step, will get all changes and apply in only a
time

Signed-off-by: Vitor Mattos <vitor@php.rio>
@backportbot-libresign backportbot-libresign bot added this to the Next RC (29) milestone Apr 11, 2024
@vitormattos vitormattos merged commit 3fb9964 into stable29 Apr 11, 2024
89 checks passed
@vitormattos vitormattos deleted the backport/2699/stable29 branch April 11, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant