Skip to content

Commit

Permalink
Skip dpl_clview when renaming tables
Browse files Browse the repository at this point in the history
Will do a better fix at some point but for now this should work
  • Loading branch information
Universal-Omega authored Feb 14, 2025
1 parent 9aa00eb commit e4ccf34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion maintenance/renameDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ public function execute(): void {
->fetchResultSet();

foreach ( $res as $row ) {
$tableNames[] = $row->TABLE_NAME;
$tableName = $row->TABLE_NAME;
// We can not use RENAME TABLE on the view, so for now we
// just skip it. Is not actually mandatory to have
// and can be easily recreated.
if ( $tableName !== 'dpl_clview' ) {
$tableNames[] = $tableName;
}
}

// Rename each table to the new database
Expand Down

0 comments on commit e4ccf34

Please sign in to comment.