Operations
class Operations (View source)
Set of functions with the operations section in phpMyAdmin
Methods
Run the Procedure definitions and function definitions
Create database before copy
Get views as an array and create SQL view stand-in
Get sql query for copy/rename table and boolean for whether copy/rename or not
Run the EVENT definition for selected database
Handle the views, return the boolean value whether table rename/copy or not
Adjust the privileges after Renaming the db
Adjust the privileges after Copying the db
Create all accumulated constraints
Duplicate the bookmarks for the db (done once for each db)
Get array of possible row formats
No description
No description
Get table alters array
Get warning messages array
Adjust the privileges after renaming/moving a table
Adjust the privileges after copying a table
Change all collations and character sets of all columns in table
Details
__construct(DatabaseInterface $dbi, Relation $relation, TableMover $tableMover)
No description
void
runProcedureAndFunctionDefinitions(string $db, DatabaseName $newDatabaseName)
Run the Procedure definitions and function definitions
to avoid selecting alternatively the current and new db we would need to modify the CREATE definitions to qualify the db name
void
createDbBeforeCopy(UserPrivileges $userPrivileges, DatabaseName $newDatabaseName)
Create database before copy
array
getViewsAndCreateSqlViewStandIn(array $tables, ExportSql $exportSqlPlugin, string $db, DatabaseName $newDatabaseName)
Get views as an array and create SQL view stand-in
array
copyTables(array $tables, bool $move, string $db, DatabaseName $newDatabaseName)
Get sql query for copy/rename table and boolean for whether copy/rename or not
void
runEventDefinitionsForDb(string $db, DatabaseName $newDatabaseName)
Run the EVENT definition for selected database
to avoid selecting alternatively the current and new db we would need to modify the CREATE definitions to qualify the db name
void
handleTheViews(array $views, bool $move, string $db, DatabaseName $newDatabaseName)
Handle the views, return the boolean value whether table rename/copy or not
void
adjustPrivilegesMoveDb(UserPrivileges $userPrivileges, string $oldDb, DatabaseName $newDatabaseName)
Adjust the privileges after Renaming the db
void
adjustPrivilegesCopyDb(UserPrivileges $userPrivileges, string $oldDb, DatabaseName $newDatabaseName)
Adjust the privileges after Copying the db
void
createAllAccumulatedConstraints(array $sqlConstraints, DatabaseName $newDatabaseName)
Create all accumulated constraints
void
duplicateBookmarks(bool $error, string $db, DatabaseName $newDatabaseName)
Duplicate the bookmarks for the db (done once for each db)
array
getPossibleRowFormat()
Get array of possible row formats
array
getPartitionMaintenanceChoices()
No description
array
getForeignersForReferentialIntegrityCheck(array $urlParams, bool $hasRelationFeature)
No description
array
getTableAltersArray(Table $pmaTable, string $packKeys, string $checksum, string $pageChecksum, string $delayKeyWrite, string $rowFormat, string $newTblStorageEngine, string $transactional, string $tableCollation, string $tableStorageEngine)
Get table alters array
array
getWarningMessagesArray(mixed $newTableStorageEngine)
Get warning messages array
void
adjustPrivilegesRenameOrMoveTable(UserPrivileges $userPrivileges, string $oldDb, string $oldTable, string $newDb, string $newTable)
Adjust the privileges after renaming/moving a table
void
adjustPrivilegesCopyTable(UserPrivileges $userPrivileges, string $oldDb, string $oldTable, string $newDb, string $newTable)
Adjust the privileges after copying a table
void
changeAllColumnsCollation(string $db, string $table, string $tableCollation)
Change all collations and character sets of all columns in table
Message
moveOrCopyTable(UserPrivileges $userPrivileges, string $db, string $table)
Move or copy a table