]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Coding standards
[friendica.git] / 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;