[prev in list] [next in list] [prev in thread] [next in thread]
List: tep-commits
Subject: [TEP-COMMIT] CVS: admin/admin backup.php,1.53,1.54
From: David Garcia Watkins <dgw_ () users ! sourceforge ! net>
Date: 2002-10-27 18:43:37
[Download RAW message or body]
Update of /cvsroot/tep/admin/admin
In directory usw-pr-cvs1:/tmp/cvs-serv7484
Modified Files:
backup.php
Log Message:
Fixed bug #767 ... instead of dropping all tables, we only drop osCommerce's tables.
Index: backup.php
===================================================================
RCS file: /cvsroot/tep/admin/admin/backup.php,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- backup.php 19 Aug 2002 01:30:25 -0000 1.53
+++ backup.php 27 Oct 2002 18:43:35 -0000 1.54
@@ -242,13 +242,10 @@
}
}
- $tables_query = tep_db_query('show tables');
- while ($tables = tep_db_fetch_array($tables_query)) {
- list(,$table) = each($tables);
- tep_db_query("drop table " . $table);
- }
+ osc_db_query("drop table if exists address_book, address_format, banners, \
banners_history, categories, categories_description, configuration, \
configuration_group, counter, counter_history, countries, currencies, customers, \
customers_basket, customers_basket_attributes, customers_info, languages, \
manufacturers, manufacturers_info, orders, orders_products, orders_status, \
orders_status_history, orders_products_attributes, orders_products_download, \
products, products_attributes, products_attributes_download, prodcts_description, \
products_options, products_options_values, \
products_options_values_to_products_options, products_to_categories, reviews, \
reviews_description, sessions, specials, tax_class, tax_rates, geo_zones, \
whos_online, zones, zones_to_geo_zones");
- for ($i=0; $i<sizeof($sql_array); $i++) {
+ $sql_array_size = sizeof($sql_array);
+ for ($i=0; $i<$sql_array_size; $i++) {
tep_db_query($sql_array[$i]);
}
@@ -350,7 +347,8 @@
}
sort($contents);
- for ($files=0; $files<sizeof($contents); $files++) {
+ $contents_size = sizeof($contents);
+ for ($files=0; $files<$contents_size; $files++) {
$entry = $contents[$files];
$check = 0;
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Tep-commits mailing list
Tep-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tep-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic