Changes to kohastructure.sql to add some missing drop if exists + change in install.pl mysql show tables

[RM note: bug 4323]

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Koustubha Kale 2010-03-19 12:56:06 +05:30 committed by Galen Charlton
parent e33e05c460
commit 1edd99e6fa
2 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ CREATE TABLE `default_branch_circ_rules` (
--
-- Table structure for table `default_branch_item_rules`
--
DROP TABLE IF EXISTS `default_branch_item_rules`;
CREATE TABLE `default_branch_item_rules` (
`itemtype` varchar(10) NOT NULL,
`holdallowed` tinyint(1) default NULL,
@ -2222,7 +2222,7 @@ CREATE TABLE `item_circulation_alert_preferences` (
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`message_id` int(11) NOT NULL auto_increment,
`borrowernumber` int(11) NOT NULL,

View File

@ -433,7 +433,7 @@ elsif ( $step && $step == 3 ) {
$info{'user'}, $info{'password'}
);
my $rq;
if ( $info{dbms} eq 'mysql' ) { $rq = $dbh->prepare( "SHOW TABLES FROM " . $info{'dbname'} ); }
if ( $info{dbms} eq 'mysql' ) { $rq = $dbh->prepare( "SHOW TABLES" ); }
elsif ( $info{dbms} eq 'Pg' ) { $rq = $dbh->prepare( "SELECT *
FROM information_schema.tables
WHERE table_schema='public' and table_type='BASE TABLE';" ); }