Bug 5668 Error during during insall with web installer, Step 3

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Mason James <mtj at kohaaloha.com>
Before patch web installer dies with error message on creating
database tables:
ERROR 1064 (42000) at line 2821: You have an error in your SQL
syntax; check the manual that corresponds to your MySQL server
version for the right syntax to use near '- biblionumber int(11)
NOT NULL, - rating_value tinyint(1) NOT NULL, - ' at line 2

After patch installation completes normally. I also checked
that tables ratings and pending_offline_operations were
created correctly.

Note: This is Marc Veron's first patch for Koha - congratulations!
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
mveron 2012-04-12 22:17:02 +02:00 committed by Paul Poulain
parent d8bac226cc
commit b42d662542
1 changed files with 4 additions and 3 deletions

View File

@ -1545,6 +1545,7 @@ CREATE TABLE `patronimage` (
-- this table is MyISAM, InnoDB tables are growing only and this table is filled/emptied/filled/emptied...
-- so MyISAM is better in this case
DROP TABLE IF EXISTS `pending_offline_operations`;
CREATE TABLE `pending_offline_operations` (
`operationid` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(30) NOT NULL,
@ -2819,9 +2820,9 @@ CREATE TABLE IF NOT EXISTS `social_data` (
DROP TABLE IF EXISTS ratings;
CREATE TABLE ratings (
borrowernumber int(11) NOT NULL, --- the borrower this rating is for
biblionumber int(11) NOT NULL, --- the biblio it's for
rating_value tinyint(1) NOT NULL, --- the rating, from 1-5
borrowernumber int(11) NOT NULL, -- the borrower this rating is for
biblionumber int(11) NOT NULL, -- the biblio it's for
rating_value tinyint(1) NOT NULL, -- the rating, from 1-5
timestamp timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (borrowernumber,biblionumber),
CONSTRAINT ratings_ibfk_1 FOREIGN KEY (borrowernumber) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE,