mirror of
https://github.com/friendica/friendica
synced 2025-04-20 15:50:12 +00:00
New table "post-content"
This commit is contained in:
parent
8eb3bddc2a
commit
c3398511b4
15 changed files with 447 additions and 431 deletions
|
@ -230,6 +230,11 @@ class PostUpdate
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('item-content')) {
|
||||
DI::config()->set('system', 'post_update_version', 1342);
|
||||
return true;
|
||||
}
|
||||
|
||||
$id = DI::config()->get('system', 'post_update_version_1341_id', 0);
|
||||
|
||||
Logger::info('Start', ['item' => $id]);
|
||||
|
@ -283,7 +288,7 @@ class PostUpdate
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('term')) {
|
||||
if (!DBStructure::existsTable('term') || !DBStructure::existsTable('item-content')) {
|
||||
DI::config()->set('system', 'post_update_version', 1342);
|
||||
return true;
|
||||
}
|
||||
|
@ -510,6 +515,11 @@ class PostUpdate
|
|||
return true;
|
||||
}
|
||||
|
||||
if (!DBStructure::existsTable('item-activity')) {
|
||||
DI::config()->set('system', 'post_update_version', 1347);
|
||||
return true;
|
||||
}
|
||||
|
||||
$id = DI::config()->get("system", "post_update_version_1347_id", 0);
|
||||
|
||||
Logger::info('Start', ['item' => $id]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue