Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
032Source Integration[All Projects] Generalpublic2009-04-30 01:202009-05-01 07:22
Reportergransi 
Assigned ToJohn Reese 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.13 
Target Version0.14Fixed in Version0.14 
Summary032: Install Plugin - Create Tables fails MySql 5.x
DescriptionMy Enviroment:

-Mantis 1.2a3
-MySql 5.1.11
-PHP 5.2.9
-Apache 2.2.11 (WAMP-Server on Windows XP SP3)

Mantis throws the following error on install the source plugin:
APPLICATION ERROR #2503
Upgrading the plugin schema failed in block #0.
Additional InformationThe MySql 5.x cannot create BLOB and TEXT columns with DEFAULT values, see Manual http://dev.mysql.com/doc/refman/5.0/en/blob.html [^]

It works after i changed the source.php ("function schema()")
From:
array( 'CreateTableSQL', array( plugin_table( 'repository' ), "
 id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,
 type C(8) NOTNULL DEFAULT \" '' \" PRIMARY,
 name C(128) NOTNULL DEFAULT \" '' \" PRIMARY,
 url C(250) DEFAULT \" '' \",
 info XL NOTNULL DEFAULT \" '' \"
 " ) ),
array( 'CreateTableSQL', array( plugin_table( 'changeset' ), "
 id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,
 repo_id I NOTNULL UNSIGNED PRIMARY,
 revision C(250) NOTNULL PRIMARY,
 branch C(250) NOTNULL DEFAULT \" '' \",
 user_id I NOTNULL UNSIGNED DEFAULT '0',
 timestamp T NOTNULL,
 author C(250) NOTNULL DEFAULT \" '' \",
 message XL NOTNULL DEFAULT \" '' \",
 info XL NOTNULL DEFAULT \" '' \"
 " ) ),
To:
array( 'CreateTableSQL', array( plugin_table( 'repository' ), "
 id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,
 type C(8) NOTNULL DEFAULT \" '' \" PRIMARY,
 name C(128) NOTNULL DEFAULT \" '' \" PRIMARY,
 url C(250) DEFAULT \" '' \",
 info XL
 " ) ),
array( 'CreateTableSQL', array( plugin_table( 'changeset' ), "
 id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,
 repo_id I NOTNULL UNSIGNED PRIMARY,
 revision C(250) NOTNULL PRIMARY,
 branch C(250) NOTNULL DEFAULT \" '' \",
 user_id I NOTNULL UNSIGNED DEFAULT '0',
 timestamp T NOTNULL,
 author C(250) NOTNULL DEFAULT \" '' \",
 message XL,
 info XL
 " ) ),
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (022)
John Reese (administrator)
2009-05-01 07:22

Fix committed to master branch at 2009-05-01 13:38:10.

- Related Changesets
Source Integration: master b97b10af
Timestamp: 2009-05-01 13:38:10
Author: John Reese
Committer: John Reese
Details ] Diff ]
Fix 032: XL columns should not have default values.
mod - Source/Source.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2009-02-28 09:39 Changeset attached master a7671325 =>
2009-04-30 01:20 gransi New Issue
2009-05-01 06:40 John Reese Assigned To => John Reese
2009-05-01 06:40 John Reese Status new => assigned
2009-05-01 06:40 John Reese Target Version => 0.16
2009-05-01 07:22 John Reese Note Added: 022
2009-05-01 07:22 John Reese Status assigned => resolved
2009-05-01 07:22 John Reese Fixed in Version => 0.16
2009-05-01 07:22 John Reese Resolution open => fixed
2009-05-01 07:22 John Reese Changeset attached master b97b10af =>


Copyright © 2000 - 2012 MantisBT Group
Time: 0.1184 seconds.
memory usage: 8,350 KB
Powered by Mantis Bugtracker

hosted with
Linode