mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
AppConfig and UserConfig unconditionally queried NC-only columns (type, lazy, flags, indexed) that don't exist in ownCloud's database schema, breaking ownCloud → Nextcloud upgrades entirely before the schema migration steps could run. Restore the fallback pattern in both classes: on first loadConfig() call, if a DBException with REASON_INVALID_FIELD_NAME is thrown, set $migrationCompleted = false and retry selecting only the columns present in ownCloud's schema. INSERT and UPDATE statements also omit NC-only columns when $migrationCompleted is false. The catch block also guards against infinite recursion: if $migrationCompleted is already false when the exception fires, the exception is re-thrown instead of triggering another recursive call. Fixes: https://github.com/nextcloud/server/issues/57340 Signed-off-by: Anna Larch <anna@nextcloud.com> AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| LexiconTest.php | ||
| TestConfigLexicon_I.php | ||
| TestLexicon_E.php | ||
| TestLexicon_N.php | ||
| TestLexicon_UserIndexed.php | ||
| TestLexicon_UserIndexedRemove.php | ||
| TestLexicon_W.php | ||
| UserConfigMigrationFallbackTest.php | ||
| UserConfigTest.php | ||