Merge pull request #10247 from annando/update

Only delete the post-user table if it has got the old structure
This commit is contained in:
Tobias Diekershoff 2021-05-14 09:06:33 +02:00 committed by GitHub
commit 5ade228c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ function update_1380()
function pre_update_1395()
{
if (DBStructure::existsTable('post-user') && !DBA::e("DROP TABLE `post-user`")) {
if (DBStructure::existsTable('post-user') && !DBStructure::existsColumn('post-user', ['id']) && !DBA::e("DROP TABLE `post-user`")) {
return Update::FAILED;
}
return Update::SUCCESS;