-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Long database names in apps break the update #10518
Comments
This comment has been minimized.
This comment has been minimized.
The thing is that would just obsolete the check all together, because no one of us ever installs oracle or checks the logs. But yeah I will look into how we can improve the situation, so apps can have a compatibility upgrade going forward. But also Note, if you make a new migration to fix your database layout, oracle still can't install, because the old table names you are using would need to install because migrations are applied incremental, not all combined into one batch. |
i am having the same problem with ownbackup also. |
Had a couple of thoughts. But they all failed. The problem is we currently analyse all tables/columns/indexes/... everytime and not just the new ones. Otherwise we could have checked if the app supports oracle or not and only check it in case it does. So my suggestion would be to only check the length in debug for 14 (or we simply disable the check in stable14 once its branched off) while we try to find a more clever solution for 15, which:
Opinions @rullzer @ChristophWurst |
For a temporary solution you can delete server/lib/private/DB/MigrationService.php Line 460 in ef5074a
|
A big problem with this is that it doesn't limit the checks to apps that are currently enabled, meaning that you can't disable the problematic app and continue the upgrade. |
Given how it checks against the entire database for each migration and not just the changed tables, I'm not even sure if you can solve this in the app if a core migration is triggered first. |
Work around for beta3: #10553 |
#10554 changes it to only check tables that are touched by a migration |
@andyxh yes it is not released yet. Beta3 will be fixed. Which is scheduled for tomorrow. |
Thank you!
From: Roeland Jago Douma <notifications@github.com>
Sent: Wednesday, August 8, 2018 1:49 PM
To: nextcloud/server <server@noreply.github.com>
Cc: andyxh <xhelia@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [nextcloud/server] Long database names in apps break the update (#10518)
@andyxh<https://github.com/andyxh> yes it is not released yet. Beta3 will be fixed. Which is scheduled for tomorrow.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#10518 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AXb4Q3faBpVvZ4yrDm6VYz7rsLdubLLpks5uOzKegaJpZM4VtiGP>.
|
It's been a while The code appeared again in https://github.com/nextcloud/server/blob/master/lib/private/DB/MigrationService.php#L461 |
Remove Oracle from support database list to get rid of it. |
@nickvergessen |
https://docs.nextcloud.com/server/latest/developer_manual/app_development/info.html Check your info.xml file and add the database dependencies |
Apps that have a to long identifier name break the update.
So far I found:
Ref #10221
Is there anything we could do about that to avoid having the update stopped with those long names? Like can we just enforce the check on oracle and maybe only log a warning on other database types where this is not an issue?
Disabling the app also doesn't work, since the check is executed anyway.
cc @nickvergessen
The text was updated successfully, but these errors were encountered: