[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:
10
update.php
10
update.php
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user