mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Trying to clean up a little bit more (#5517)
* "post-type" replaces "bookmark" and "type" * The permission set is now removed upon expiry * Post update now stores the permission set * We don't store the permissions in the item table anymore * Postupdate now handles "postopts" as well * "post-type" replaces "bookmark" and "type" * "post-type" replaces "bookmark" and "type" * "post-type" replaces "bookmark" and "type" * The permission set is now removed upon expiry * The permission set is now removed upon expiry * We don't store the permissions in the item table anymore * Postupdate now handles "postopts" as well * Multiplicated update functions * And some more duplicated functions ... * Removed duplicate functions
This commit is contained in:
parent
91db91d315
commit
489d3daa94
3 changed files with 1 additions and 29 deletions
24
update.php
24
update.php
|
@ -246,27 +246,3 @@ function update_1278() {
|
|||
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
function update_1278() {
|
||||
Config::set('system', 'maintenance', 1);
|
||||
Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
|
||||
|
||||
Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
|
||||
Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
|
||||
|
||||
Config::set('system', 'maintenance', 0);
|
||||
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
function update_1278() {
|
||||
Config::set('system', 'maintenance', 1);
|
||||
Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
|
||||
|
||||
Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
|
||||
Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
|
||||
|
||||
Config::set('system', 'maintenance', 0);
|
||||
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue