1
0
Fork 0

[Database version 1402] Rework parsed_url table

- Allow arbitrary-sized URL
- Use URL hash for primary key instead of truncated URL, requires table truncation pre update
- Add expires field
This commit is contained in:
Hypolite Petovan 2021-02-16 10:10:53 -05:00
commit 7de03eb13f
3 changed files with 23 additions and 8 deletions

View file

@ -817,3 +817,13 @@ function update_1400()
return Update::SUCCESS;
}
function pre_update_1403()
{
// Necessary before a primary key change
if (!DBA::e("DROP TABLE `parsed_url`")) {
return Update::FAILED;
}
return Update::SUCCESS;
}