-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5823 from WoltLab/spider-list
Remove the storage of spiders in the database
- Loading branch information
Showing
25 changed files
with
883 additions
and
351 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.1_spider_step1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* Drops old spider related columns and index from `wcf1_session` table. | ||
* | ||
* @author Olaf Braun | ||
* @copyright 2001-2024 WoltLab GmbH | ||
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | ||
* @since 6.1 | ||
*/ | ||
|
||
use wcf\system\database\table\column\IntDatabaseTableColumn; | ||
use wcf\system\database\table\index\DatabaseTableForeignKey; | ||
use wcf\system\database\table\index\DatabaseTableIndex; | ||
use wcf\system\database\table\PartialDatabaseTable; | ||
|
||
return [ | ||
PartialDatabaseTable::create('wcf1_session') | ||
->columns([ | ||
IntDatabaseTableColumn::create('spiderID') | ||
->length(10) | ||
->drop(), | ||
]) | ||
->indices([ | ||
DatabaseTableIndex::create('packageID') | ||
->columns(['lastActivityTime', 'spiderID']) | ||
->drop(), | ||
]) | ||
->foreignKeys([ | ||
DatabaseTableForeignKey::create() | ||
->columns(['spiderID']) | ||
->referencedTable('wcf1_spider') | ||
->referencedColumns(['spiderID']) | ||
->onDelete('CASCADE') | ||
->drop(), | ||
]), | ||
]; |
29 changes: 29 additions & 0 deletions
29
wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.1_spider_step2.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* Drops olds `wcf1_spider` table and create new columns to identify spiders in `wcf1_session` table. | ||
* | ||
* @author Olaf Braun | ||
* @copyright 2001-2024 WoltLab GmbH | ||
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | ||
* @since 6.1 | ||
*/ | ||
|
||
use wcf\system\database\table\column\VarcharDatabaseTableColumn; | ||
use wcf\system\database\table\index\DatabaseTableIndex; | ||
use wcf\system\database\table\PartialDatabaseTable; | ||
|
||
return [ | ||
PartialDatabaseTable::create('wcf1_spider') | ||
->drop(), | ||
PartialDatabaseTable::create('wcf1_session') | ||
->columns([ | ||
VarcharDatabaseTableColumn::create('spiderIdentifier') | ||
->length(191) | ||
->defaultValue(null), | ||
]) | ||
->indices([ | ||
DatabaseTableIndex::create('packageID') | ||
->columns(['lastActivityTime', 'spiderIdentifier']), | ||
]), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
wcfsetup/install/files/lib/data/spider/SpiderAction.class.php
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
wcfsetup/install/files/lib/data/spider/SpiderEditor.class.php
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
wcfsetup/install/files/lib/data/spider/SpiderList.class.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.