]> git.mxchange.org Git - friendica.git/commitdiff
Only delete "post-user" when it is has got the wrong structure
authorMichael <heluecht@pirati.ca>
Wed, 28 Apr 2021 20:43:51 +0000 (20:43 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 28 Apr 2021 20:43:51 +0000 (20:43 +0000)
update.php

index 819085f7ff2f5c6f1342d4f36c3a9e851997b039..a34a5dbb0b92893b9a74e7937d46c161c82dc0b5 100644 (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;