forked from opendocman/opendocman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0000331: mysql column mis-match error during install
git-svn-id: http://opendocman.svn.sourceforge.net/svnroot/opendocman/opendocman/trunk@752 769e0422-6c0b-0410-966c-d94082ee0ac6
- Loading branch information
logart
committed
Jan 12, 2011
1 parent
8ef543d
commit 0dbfd12
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,10 @@ CREATE TABLE odm_category ( | |
# Dumping data for table 'odm_category' | ||
# | ||
|
||
INSERT INTO odm_category VALUES (1,'SOP'); | ||
INSERT INTO odm_category VALUES (2,'Training Manual'); | ||
INSERT INTO odm_category VALUES (3,'Letter'); | ||
INSERT INTO odm_category VALUES (4,'Presentation'); | ||
INSERT INTO odm_category VALUES (NULL,'SOP'); | ||
INSERT INTO odm_category VALUES (NULL,'Training Manual'); | ||
INSERT INTO odm_category VALUES (NULL,'Letter'); | ||
INSERT INTO odm_category VALUES (NULL,'Presentation'); | ||
|
||
# | ||
# Table structure for table 'odm_data' | ||
|
@@ -81,7 +81,7 @@ CREATE TABLE odm_department ( | |
# Dumping data for table 'odm_department' | ||
# | ||
|
||
INSERT INTO odm_department VALUES (1,'Information Systems'); | ||
INSERT INTO odm_department VALUES (NULL,'Information Systems'); | ||
|
||
# | ||
# Table structure for table 'odm_dept_perms' | ||
|
@@ -176,7 +176,7 @@ CREATE TABLE odm_user ( | |
# Dumping data for table 'odm_user' | ||
# | ||
|
||
INSERT INTO odm_user VALUES (1,'admin','',1,'5555551212','[email protected]','User','Admin',''); | ||
INSERT INTO odm_user VALUES (NULL,'admin','',1,'5555551212','[email protected]','User','Admin',''); | ||
|
||
# | ||
# Table structure for table 'odm_user_perms' | ||
|
@@ -224,5 +224,5 @@ CREATE TABLE IF NOT EXISTS odm_odmsys | |
sys_value varchar(255) | ||
) TYPE=MyISAM; | ||
|
||
INSERT INTO odm_odmsys VALUES ('','version','1.2.6'); | ||
INSERT INTO odm_odmsys VALUES (NULL,'version','1.2.6'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,19 +50,19 @@ | |
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}category table. Error was:" . mysql_error()); | ||
|
||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (1,'SOP') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (NULL,'SOP') | ||
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}category. Error was:" . mysql_error()); | ||
|
||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (2,'Training Manual') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (NULL,'Training Manual') | ||
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}category. Error was:" . mysql_error()); | ||
|
||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (3,'Letter') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (NULL,'Letter') | ||
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}category. Error was:" . mysql_error()); | ||
|
||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (4,'Presentation') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}category VALUES (NULL,'Presentation') | ||
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}category. Error was:" . mysql_error()); | ||
|
||
// Data table | ||
|
@@ -108,7 +108,7 @@ | |
") or die("<br>Could not create {$GLOBALS['CONFIG']['db_prefix']}department table. Error was:" . mysql_error()); | ||
|
||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}department VALUES (1,'Information Systems') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}department VALUES (NULL,'Information Systems') | ||
") or die("<br>Could not {$GLOBALS['CONFIG']['db_prefix']}add department. Error was:" . mysql_error()); | ||
|
||
// Department Permissions table | ||
|
@@ -220,7 +220,7 @@ | |
|
||
// Create admin user | ||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}user VALUES (1,'admin','','1','5555551212','[email protected]','User','Admin','') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}user VALUES (NULL,'admin','','1','5555551212','[email protected]','User','Admin','') | ||
") or die("<br>Could not add user. Error was:" . mysql_error()); | ||
|
||
// User permissions table | ||
|
@@ -260,5 +260,5 @@ | |
|
||
// Create version number in db | ||
$result = mysql_query(" | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}odmsys VALUES ('version','1.2.6') | ||
INSERT INTO {$GLOBALS['CONFIG']['db_prefix']}odmsys VALUES (NULL, 'version','1.2.6') | ||
") or die("<br>Could not insert new version into {$GLOBALS['CONFIG']['db_prefix']}odmsys. Error was:" . mysql_error()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters