new sub-feature: possibility of removing all tracking data for a table (useful for older tables that have been deleted from this database)
This commit is contained in:
@@ -20,6 +20,12 @@ require './libraries/db_info.inc.php';
|
||||
// Get relation settings
|
||||
require_once './libraries/relation.lib.php';
|
||||
|
||||
// Work to do?
|
||||
// (here, do not use $_REQUEST['db] as it can be crafted)
|
||||
if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) {
|
||||
PMA_Tracker::deleteTracking($GLOBALS['db'], $_REQUEST['table']);
|
||||
}
|
||||
|
||||
// Get tracked data about the database
|
||||
$data = PMA_Tracker::getTrackedData($_REQUEST['db'], '', '1');
|
||||
|
||||
@@ -67,6 +73,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
|
||||
<th><?php echo $strTrackingThCreated;?></th>
|
||||
<th><?php echo $strTrackingThUpdated;?></th>
|
||||
<th><?php echo $strStatus;?></th>
|
||||
<th><?php echo $strAction;?></th>
|
||||
<th><?php echo $strShow;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -75,6 +82,14 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
|
||||
|
||||
// Print out information about versions
|
||||
|
||||
$drop_image_or_text = '';
|
||||
if (true == $GLOBALS['cfg']['PropertiesIconic']) {
|
||||
$drop_image_or_text .= '<img class="icon" width="16" height="16" src="' . $pmaThemeImage . 'b_drop.png" alt="' . $strDeleteTrackingData . '" title="' . $strDeleteTrackingData . '" />';
|
||||
}
|
||||
if ('both' === $GLOBALS['cfg']['PropertiesIconic'] || false === $GLOBALS['cfg']['PropertiesIconic']) {
|
||||
$drop_image_or_text .= $strDrop;
|
||||
}
|
||||
|
||||
$style = 'odd';
|
||||
while ($one_result = PMA_DBI_fetch_array($all_tables_result)) {
|
||||
list($table_name, $version_number) = $one_result;
|
||||
@@ -92,6 +107,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
|
||||
$version_status = $strTrackingStatusNotActive;
|
||||
}
|
||||
$tmp_link = 'tbl_tracking.php?' . $url_query . '&table=' . htmlspecialchars($version_data['table_name']);
|
||||
$delete_link = 'db_tracking.php?' . $url_query . '&table=' . htmlspecialchars($version_data['table_name']) . '&delete_tracking=true&';
|
||||
?>
|
||||
<tr class="<?php echo $style;?>">
|
||||
<td><?php echo htmlspecialchars($version_data['db_name']);?></td>
|
||||
@@ -100,6 +116,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
|
||||
<td><?php echo $version_data['date_created'];?></td>
|
||||
<td><?php echo $version_data['date_updated'];?></td>
|
||||
<td><?php echo $version_status;?></td>
|
||||
<td><a href="<?php echo $delete_link;?>" onclick="return confirmLink(this, '<?php echo PMA_jsFormat($strDeleteTrackingData, false); ?>')"><?php echo $drop_image_or_text; ?></a></td>
|
||||
<td> <a href="<?php echo $tmp_link; ?>"><?php echo $strTrackingVersions;?></a>
|
||||
| <a href="<?php echo $tmp_link; ?>&report=true&version=<?php echo $version_data['version'];?>"><?php echo $strTrackingReport;?></a>
|
||||
| <a href="<?php echo $tmp_link; ?>&snapshot=true&version=<?php echo $version_data['version'];?>"><?php echo $strTrackingStructureSnapshot;?></a></td>
|
||||
|
@@ -1638,4 +1638,5 @@ $strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the l
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1636,4 +1636,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1640,4 +1640,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1644,4 +1644,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1638,4 +1638,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1638,4 +1638,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1624,4 +1624,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1639,4 +1639,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1626,4 +1626,5 @@ $strTargetDatabaseHasBeenSynchronized = 'Target database has been synchronized w
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strTrackingStatusNotActive = 'not active'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -247,6 +247,7 @@ $strDelete = 'Delete';
|
||||
$strDeleted = 'The row has been deleted';
|
||||
$strDeleteNoUsersSelected = 'No users selected for deleting!';
|
||||
$strDeleteRelation = 'Delete relation';
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table';
|
||||
$strDeleting = 'Deleting %s';
|
||||
$strDelimiter = 'Delimiter';
|
||||
$strDelOld = 'The current page has references to tables that no longer exist. Would you like to delete those references?';
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1630,4 +1630,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -244,6 +244,7 @@ $strDeleted = 'L\'enregistrement a été effacé';
|
||||
$strDelete = 'Effacer';
|
||||
$strDeleteNoUsersSelected = 'Aucun utilisateur n\'a été choisi en vue de le détruire!';
|
||||
$strDeleteRelation = 'Effacer la relation';
|
||||
$strDeleteTrackingData = 'Supprimer les données de suivi de cette table';
|
||||
$strDeleting = 'Destruction de %s';
|
||||
$strDelimiter = 'Délimiteur';
|
||||
$strDelOld = 'Cette page fait référence à des tables qui n\'existent plus. Voulez-vous effacer ces références?';
|
||||
@@ -1492,7 +1493,7 @@ $strTrackingSQLExported = 'Énoncés SQL exportés. Vous pouvez copier le fichie
|
||||
$strTrackingStatements = 'Suivi des énoncés';
|
||||
$strTrackingStatusActive = 'actif';
|
||||
$strTrackingStatusNotActive = 'non activé';
|
||||
$strTrackingStructureSnapshot = 'Instantané de la structure';
|
||||
$strTrackingStructureSnapshot = 'Instantané';
|
||||
$strTracking = 'Suivi';
|
||||
$strTrackingThCreated = 'Créé';
|
||||
$strTrackingThLastVersion = 'Dernière version';
|
||||
|
@@ -1618,4 +1618,5 @@ $strTargetDatabaseHasBeenSynchronized = 'Target database has been synchronized w
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1633,4 +1633,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1639,4 +1639,5 @@ $strZip = '"zipped"' ; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1634,4 +1634,5 @@ $strXML = 'XML';//to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1638,4 +1638,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1651,4 +1651,5 @@ $strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the l
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1637,4 +1637,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1627,4 +1627,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1640,4 +1640,5 @@ $strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the l
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1623,4 +1623,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1641,4 +1641,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1632,4 +1632,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1635,4 +1635,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1639,4 +1639,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1634,4 +1634,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1626,4 +1626,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1627,4 +1627,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1636,4 +1636,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1626,4 +1626,5 @@ $strTargetDatabaseHasBeenSynchronized = 'Target database has been synchronized w
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1634,4 +1634,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -1631,4 +1631,5 @@ $strXMLExportViews = 'Export views'; //to translate
|
||||
$strTrackingYouCanExecute = 'You can execute the dump by creating and using a temporary database. Please ensure that you have the privileges to do so.'; //to translate
|
||||
$strTrackingCommentOut = 'Comment out these two lines if you do not need them.'; //to translate
|
||||
$strTrackingReportForTable = 'Tracking report for table `%s`'; //to translate
|
||||
$strDeleteTrackingData = 'Delete tracking data for this table'; //to translate
|
||||
?>
|
||||
|
@@ -360,6 +360,26 @@ class PMA_Tracker
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Removes all tracking data for a table
|
||||
*
|
||||
* @static
|
||||
*
|
||||
* @param string $dbname name of database
|
||||
* @param string $tablename name of table
|
||||
*
|
||||
* @return int result of version insertion
|
||||
*/
|
||||
static public function deleteTracking($dbname, $tablename)
|
||||
{
|
||||
$sql_query =
|
||||
"/*NOTRACK*/\n" .
|
||||
"DELETE FROM " . self::$pma_table . " WHERE `db_name` = '" . PMA_sqlAddslashes($dbname) . "' AND `table_name` = '" . PMA_sqlAddslashes($tablename) . "'";
|
||||
$result = PMA_query_as_controluser($sql_query);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates tracking version of a database
|
||||
* (in other words: create a job to track future changes on the database).
|
||||
|
Reference in New Issue
Block a user