From b736e4df763c92d5077b41e150ad3784d1619327 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 7 Jun 2001 18:05:59 +0000 Subject: [PATCH] data only dump --- ChangeLog | 1 + db_details.php3 | 6 ++++++ db_dump.php3 | 5 ++++- lang/brazilian_portuguese.inc.php3 | 1 + lang/bulgarian-win1251.inc.php3 | 1 + lang/catala.inc.php3 | 1 + lang/chinese_big5.inc.php3 | 1 + lang/chinese_gb.inc.php3 | 1 + lang/czech-win1250.inc.php3 | 1 + lang/danish.inc.php3 | 1 + lang/dutch.inc.php3 | 1 + lang/english.inc.php3 | 1 + lang/french.inc.php3 | 1 + lang/german.inc.php3 | 1 + lang/italian.inc.php3 | 1 + lang/norwegian.inc.php3 | 1 + lang/polish.inc.php3 | 1 + lang/portuguese.inc.php3 | 1 + lang/russian-koi8.inc.php3 | 1 + lang/russian-win1251.inc.php3 | 1 + lang/spanish.inc.php3 | 1 + lang/swedish.inc.php3 | 1 + lang/thai.inc.php3 | 1 + tbl_dump.php3 | 6 +++++- tbl_properties.php3 | 6 ++++++ 25 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7628ea8c6..12b89bfeb 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2001-06-07 Marc Delisle * modify/implement Steve Alberty's patch for complete table dump + * implement Alessandro Astarita's patch for data only dump 2001-06-06 Armel Fauveau * patch bookmark section in sql.php3 (bug #430628) diff --git a/db_details.php3 b/db_details.php3 index bff13711d..ba0c654c9 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -122,6 +122,12 @@ if($cfgBookmark['db'] && $cfgBookmark['table']) + + + + + + diff --git a/db_dump.php3 b/db_dump.php3 index 36aaaad70..41e85e49d 100755 --- a/db_dump.php3 +++ b/db_dump.php3 @@ -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"; diff --git a/lang/brazilian_portuguese.inc.php3 b/lang/brazilian_portuguese.inc.php3 index 29e61619f..0da727432 100644 --- a/lang/brazilian_portuguese.inc.php3 +++ b/lang/brazilian_portuguese.inc.php3 @@ -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 ?> diff --git a/lang/bulgarian-win1251.inc.php3 b/lang/bulgarian-win1251.inc.php3 index 10c9d74ab..b7e647d62 100644 --- a/lang/bulgarian-win1251.inc.php3 +++ b/lang/bulgarian-win1251.inc.php3 @@ -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 ?> diff --git a/lang/catala.inc.php3 b/lang/catala.inc.php3 index 19cb4150d..057b6cbcb 100644 --- a/lang/catala.inc.php3 +++ b/lang/catala.inc.php3 @@ -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 ?> diff --git a/lang/chinese_big5.inc.php3 b/lang/chinese_big5.inc.php3 index ea06f937e..4ac77cf89 100644 --- a/lang/chinese_big5.inc.php3 +++ b/lang/chinese_big5.inc.php3 @@ -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 ?> diff --git a/lang/chinese_gb.inc.php3 b/lang/chinese_gb.inc.php3 index 1d2777e5d..6a7e970f0 100644 --- a/lang/chinese_gb.inc.php3 +++ b/lang/chinese_gb.inc.php3 @@ -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 ?> diff --git a/lang/czech-win1250.inc.php3 b/lang/czech-win1250.inc.php3 index 82224387d..910ef4026 100644 --- a/lang/czech-win1250.inc.php3 +++ b/lang/czech-win1250.inc.php3 @@ -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 ?> diff --git a/lang/danish.inc.php3 b/lang/danish.inc.php3 index 1545dc02e..717969dba 100644 --- a/lang/danish.inc.php3 +++ b/lang/danish.inc.php3 @@ -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 ?> diff --git a/lang/dutch.inc.php3 b/lang/dutch.inc.php3 index 52b5895b8..903b8144f 100644 --- a/lang/dutch.inc.php3 +++ b/lang/dutch.inc.php3 @@ -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 ?> diff --git a/lang/english.inc.php3 b/lang/english.inc.php3 index fdce36718..6cd951464 100644 --- a/lang/english.inc.php3 +++ b/lang/english.inc.php3 @@ -218,4 +218,5 @@ $strAnyColumn = "Any Column"; $strColumnEmpty = "The columns names are empty!"; $strInsertAsNewRow="Insert as new row"; $strTableMaintenance="Table maintenance"; +$strDataOnly="Data only"; ?> diff --git a/lang/french.inc.php3 b/lang/french.inc.php3 index 07db04b07..f4b8b6af2 100644 --- a/lang/french.inc.php3 +++ b/lang/french.inc.php3 @@ -235,4 +235,5 @@ $strAnyColumn = "Any Column";//to translate $strColumnEmpty = "The columns names are empty!";//to translate $strInsertAsNewRow="Insérer ce nouvel enregistrement"; $strTableMaintenance="Maintenance de la table"; +$strDataOnly="Données seulement"; ?> diff --git a/lang/german.inc.php3 b/lang/german.inc.php3 index 611970e99..afa5fbbae 100644 --- a/lang/german.inc.php3 +++ b/lang/german.inc.php3 @@ -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 ?> diff --git a/lang/italian.inc.php3 b/lang/italian.inc.php3 index 15eb10829..17a8a63f4 100644 --- a/lang/italian.inc.php3 +++ b/lang/italian.inc.php3 @@ -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 ?> diff --git a/lang/norwegian.inc.php3 b/lang/norwegian.inc.php3 index 999296a4a..c78984e8c 100644 --- a/lang/norwegian.inc.php3 +++ b/lang/norwegian.inc.php3 @@ -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 ?> diff --git a/lang/polish.inc.php3 b/lang/polish.inc.php3 index 8659545b4..b9fa201e5 100644 --- a/lang/polish.inc.php3 +++ b/lang/polish.inc.php3 @@ -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 ?> diff --git a/lang/portuguese.inc.php3 b/lang/portuguese.inc.php3 index 3400baecc..ee80d00ef 100644 --- a/lang/portuguese.inc.php3 +++ b/lang/portuguese.inc.php3 @@ -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 ?> diff --git a/lang/russian-koi8.inc.php3 b/lang/russian-koi8.inc.php3 index e3ff36c67..79499ceb5 100644 --- a/lang/russian-koi8.inc.php3 +++ b/lang/russian-koi8.inc.php3 @@ -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 ?> diff --git a/lang/russian-win1251.inc.php3 b/lang/russian-win1251.inc.php3 index 1b89df970..2cfa67601 100644 --- a/lang/russian-win1251.inc.php3 +++ b/lang/russian-win1251.inc.php3 @@ -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 ?> diff --git a/lang/spanish.inc.php3 b/lang/spanish.inc.php3 index a42adac9d..d7a6b0010 100644 --- a/lang/spanish.inc.php3 +++ b/lang/spanish.inc.php3 @@ -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 ?> diff --git a/lang/swedish.inc.php3 b/lang/swedish.inc.php3 index 99c17a73c..47272a7cd 100644 --- a/lang/swedish.inc.php3 +++ b/lang/swedish.inc.php3 @@ -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 ?> diff --git a/lang/thai.inc.php3 b/lang/thai.inc.php3 index 0c16b848f..11e54a778 100644 --- a/lang/thai.inc.php3 +++ b/lang/thai.inc.php3 @@ -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 ?> diff --git a/tbl_dump.php3 b/tbl_dump.php3 index b95ad7132..c124c6914 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -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"; diff --git a/tbl_properties.php3 b/tbl_properties.php3 index e6b09cf09..5ca8b91da 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -250,6 +250,12 @@ echo " \n"; + + + + + +