data only dump
This commit is contained in:
@@ -7,6 +7,7 @@ $Source$
|
||||
|
||||
2001-06-07 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* modify/implement Steve Alberty's patch for complete table dump
|
||||
* implement Alessandro Astarita's patch for data only dump
|
||||
|
||||
2001-06-06 Armel Fauveau <armel.fauveau@globalis-ms.com>
|
||||
* patch bookmark section in sql.php3 (bug #430628)
|
||||
|
@@ -122,6 +122,12 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])
|
||||
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="dataonly">
|
||||
<?php echo $strDataOnly; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
|
@@ -82,6 +82,8 @@ else
|
||||
{
|
||||
$table = mysql_tablename($tables, $i);
|
||||
|
||||
if($what != "dataonly")
|
||||
{
|
||||
print $crlf;
|
||||
print "# --------------------------------------------------------$crlf";
|
||||
print "#$crlf";
|
||||
@@ -90,8 +92,9 @@ else
|
||||
print $crlf;
|
||||
|
||||
echo get_table_def($db, $table, $crlf).";$crlf$crlf";
|
||||
}
|
||||
|
||||
if($what == "data")
|
||||
if(($what == "data") || ($what == "dataonly"))
|
||||
{
|
||||
print "#$crlf";
|
||||
print "# $strDumpingData '$table'$crlf";
|
||||
|
@@ -206,4 +206,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -205,4 +205,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -185,4 +185,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -190,4 +190,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -190,4 +190,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -203,4 +203,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -206,4 +206,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -193,4 +193,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -218,4 +218,5 @@ $strAnyColumn = "Any Column";
|
||||
$strColumnEmpty = "The columns names are empty!";
|
||||
$strInsertAsNewRow="Insert as new row";
|
||||
$strTableMaintenance="Table maintenance";
|
||||
$strDataOnly="Data only";
|
||||
?>
|
||||
|
@@ -235,4 +235,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow="Ins<EFBFBD>rer ce nouvel enregistrement";
|
||||
$strTableMaintenance="Maintenance de la table";
|
||||
$strDataOnly="Donn<EFBFBD>es seulement";
|
||||
?>
|
||||
|
@@ -200,4 +200,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -204,4 +204,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -185,4 +185,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -195,4 +195,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -192,4 +192,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -202,4 +202,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -202,4 +202,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -204,4 +204,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -216,4 +216,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -216,4 +216,5 @@ $strAnyColumn = "Any Column";//to translate
|
||||
$strColumnEmpty = "The columns names are empty!";//to translate
|
||||
$strInsertAsNewRow=" Insert as new row "; //to translate
|
||||
$strTableMaintenance=" Table maintenance "; //to translate
|
||||
$strDataOnly=" Data only "; //to translate
|
||||
?>
|
||||
|
@@ -75,14 +75,18 @@ if($what != "csv")
|
||||
if(!empty($cfgServer['port']))
|
||||
print ":" . $cfgServer['port'];
|
||||
print " $strDatabase: $db$crlf";
|
||||
|
||||
if($what != "dataonly")
|
||||
{
|
||||
print "# --------------------------------------------------------$crlf";
|
||||
print "$crlf#$crlf";
|
||||
print "# $strTableStructure '$table'$crlf";
|
||||
print "#$crlf$crlf";
|
||||
|
||||
print get_table_def($db, $table, $crlf).";$crlf";
|
||||
}
|
||||
|
||||
if($what == "data")
|
||||
if(($what == "data") || ($what == "dataonly"))
|
||||
{
|
||||
print "$crlf#$crlf";
|
||||
print "# $strDumpingData '$table'$crlf";
|
||||
|
@@ -250,6 +250,12 @@ echo " </select>\n";
|
||||
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="dataonly">
|
||||
<?php echo $strDataOnly; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="csv"><?php echo $strStrucCSV;?>
|
||||
|
Reference in New Issue
Block a user