mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Only delete "post-user" when it is has got the wrong structure
This commit is contained in:
parent
e41283faff
commit
69f6b73033
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue