Last modified: 2012-12-28 01:39:49 UTC
DBQueryError: A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: CREATE TABLE IF NOT EXISTS "unittest_orm_test"( test_id INT unsigned NOT NULL auto_increment PRIMARY KEY, test_name VARCHAR(255) NOT NULL, test_age TINYINT unsigned NOT NULL, test_height FLOAT NOT NULL, test_awesome TINYINT unsigned NOT NULL, test_stuff BLOB NOT NULL, test_moarstuff BLOB NOT NULL, test_time varbinary(14) NOT NULL ); Function: DatabaseBase::safeQuery Error: 42601 ERROR: syntax error at or near "unsigned" LINE 2: test_id INT unsigned NOT NULL ...
^ /var/www/thedarkcitadel.com/w/includes/db/Database.php:972 /var/www/thedarkcitadel.com/w/includes/db/DatabasePostgres.php:468 /var/www/thedarkcitadel.com/w/includes/db/Database.php:939 /var/www/thedarkcitadel.com/w/includes/db/Database.php:1025 /var/www/thedarkcitadel.com/w/includes/db/Database.php:1050 /var/www/thedarkcitadel.com/w/tests/phpunit/includes/db/TestORMRowTest.php:82 /var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiTestCase.php:75 /var/www/thedarkcitadel.com/w/tests/phpunit/MediaWikiPHPUnitCommand.php:45 /var/www/thedarkcitadel.com/w/tests/phpunit/phpunit.php:103 (Forgot second part of error)
Which database backend (and version) are you using? I am CCing Jeroen De Dauw who wrote the ORM stuff.
Postgres, as given the postgres keyword tag, marking it a blocker of the postgres tracking bug, and the second line of the backtrace which is DatabasePostgres.php Version is generally unimportant in this case, as the main issue is the datatypes in the CREATE statement which have been fairly invariant for the basic types. Although for giggles it's 9.1.4 INT unsigned => INT varchar(255) => TEXT TINYINT unsigned => SMALLINT FLOAT => REAL BLOB => BYTEA varbinary(14) => BYTEA I think are the general mappings.
*** This bug has been marked as a duplicate of bug 37601 ***