mysql_convert_unicode: add transaction block
This commit is contained in:
parent
18ab3d7ae1
commit
1a25307ae7
|
@ -81,6 +81,7 @@ function confirmOP() {
|
||||||
|
|
||||||
print "<p>".__("Converting database...")."</p>";
|
print "<p>".__("Converting database...")."</p>";
|
||||||
|
|
||||||
|
db_query($link, "BEGIN");
|
||||||
db_query($link, "SET FOREIGN_KEY_CHECKS=0");
|
db_query($link, "SET FOREIGN_KEY_CHECKS=0");
|
||||||
|
|
||||||
$result = db_query($link, "SHOW TABLES LIKE 'ttrss%'");
|
$result = db_query($link, "SHOW TABLES LIKE 'ttrss%'");
|
||||||
|
@ -98,6 +99,7 @@ function confirmOP() {
|
||||||
}
|
}
|
||||||
|
|
||||||
db_query($link, "SET FOREIGN_KEY_CHECKS=1");
|
db_query($link, "SET FOREIGN_KEY_CHECKS=1");
|
||||||
|
db_query($link, "COMMIT");
|
||||||
|
|
||||||
print "<form method=\"GET\" action=\"logout.php\">
|
print "<form method=\"GET\" action=\"logout.php\">
|
||||||
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
|
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
|
||||||
|
|
Loading…
Reference in New Issue