Skip to content

Commit

Permalink
Update mptt_left/right fields in mysql to use signed values.
Browse files Browse the repository at this point in the history
Fixes #229.
  • Loading branch information
ringmaster committed Oct 26, 2011
1 parent 8ebea08 commit 35735ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions classes/version.php
Expand Up @@ -12,9 +12,8 @@
*/
class Version
{
// DB and API versions are aligned with the SVN revision
// number in which they last changed.
const DB_VERSION = 5098;
// DB and API versions are incremented by one as the DB structure or API change
const DB_VERSION = 5099;
const API_VERSION = 4956;

const HABARI_VERSION = '0.8-alpha';
Expand Down
4 changes: 2 additions & 2 deletions schema/mysql/schema.sql
Expand Up @@ -179,8 +179,8 @@ CREATE TABLE {$prefix}terms (
term VARCHAR(255) NOT NULL,
term_display VARCHAR(255) NOT NULL,
vocabulary_id INT UNSIGNED NOT NULL,
mptt_left INT UNSIGNED NOT NULL,
mptt_right INT UNSIGNED NOT NULL,
mptt_left INT SIGNED NOT NULL,
mptt_right INT SIGNED NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY ix_mptt (vocabulary_id, mptt_right, mptt_left),
UNIQUE KEY ix_term (vocabulary_id, term)
Expand Down

0 comments on commit 35735ae

Please sign in to comment.