projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e41283f
)
Only delete "post-user" when it is has got the wrong structure
author
Michael
<heluecht@pirati.ca>
Wed, 28 Apr 2021 20:43:51 +0000
(20:43 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 28 Apr 2021 20:43:51 +0000
(20:43 +0000)
update.php
patch
|
blob
|
history
diff --git
a/update.php
b/update.php
index 819085f7ff2f5c6f1342d4f36c3a9e851997b039..a34a5dbb0b92893b9a74e7937d46c161c82dc0b5 100644
(file)
--- a/
update.php
+++ b/
update.php
@@
-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') && !DB
Structure::existsColumn('post-user', ['id']) && !DB
A::e("DROP TABLE `post-user`")) {
return Update::FAILED;
}
return Update::SUCCESS;