1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

fixed database install

This commit is contained in:
Savetheinternet 2011-04-07 00:47:30 +10:00
parent 667b77dcbc
commit 04a13e8f77
2 changed files with 2 additions and 9 deletions

View File

@ -309,8 +309,8 @@
// This code is probably horrible, but what I'm trying // This code is probably horrible, but what I'm trying
// to do is find all of the SQL queires and put them // to do is find all of the SQL queires and put them
// in an array. // in an array.
preg_match_all("/((SET|CREATE|INSERT).+)\n\n/msU", $sql, $queries); preg_match_all("/(^|\n)((SET|CREATE|INSERT).+)\n\n/msU", $sql, $queries);
$queries = $queries[1]; $queries = $queries[2];
$sql_errors = ''; $sql_errors = '';
foreach($queries as &$query) { foreach($queries as &$query) {

View File

@ -2,10 +2,7 @@
-- version 3.3.9 -- version 3.3.9
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: 127.0.0.1
-- Generation Time: Apr 07, 2011 at 12:37 AM -- Generation Time: Apr 07, 2011 at 12:37 AM
-- Server version: 5.1.48
-- PHP Version: 5.3.2
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@ -15,10 +12,6 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */; /*!40101 SET NAMES utf8 */;
--
-- Database: `imgboard`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --