language field renamed to "language"

This commit is contained in:
Michael 2024-02-02 07:05:39 +00:00
parent fc22a3e83f
commit 7faa42882b
9 changed files with 23 additions and 12 deletions

View file

@ -1410,4 +1410,15 @@ function update_1539()
DBA::close($users);
return Update::SUCCESS;
}
}
function pre_update_1550()
{
if (DBStructure::existsTable('post-engagement') && DBStructure::existsColumn('post-engagement', ['language'])) {
DBA::e("ALTER TABLE `post-engagement` DROP `language`");
}
if (DBStructure::existsTable('post-searchindex') && DBStructure::existsColumn('post-searchindex', ['network'])) {
DBA::e("ALTER TABLE `post-searchindex` DROP `network`, DROP `private`");
}
return Update::SUCCESS;
}