Index: htdocs/system/classes/version.php =================================================================== --- htdocs/system/classes/version.php (revision 3102) +++ htdocs/system/classes/version.php (working copy) @@ -14,7 +14,7 @@ { // DB and API versions are aligned with the SVN revision // number in which they last changed. - const DB_VERSION = 3031; + const DB_VERSION = 3093; const API_VERSION = 2951; const HABARI_VERSION = '0.6-alpha'; Index: htdocs/system/schema/mysql/schema.sql =================================================================== --- htdocs/system/schema/mysql/schema.sql (revision 3102) +++ htdocs/system/schema/mysql/schema.sql (working copy) @@ -214,6 +214,8 @@ id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description VARCHAR(255) NULL, + token_type INT UNSIGNED NOT NULL DEFAULT 0, + token_group VARCHAR(255) NULL, PRIMARY KEY (id), UNIQUE INDEX name (name) ); @@ -237,4 +239,4 @@ token_id INT UNSIGNED NOT NULL, permission_id TINYINT UNSIGNED NOT NULL, PRIMARY KEY (user_id, token_id) -); +); \ No newline at end of file Index: htdocs/system/schema/pgsql/schema.sql =================================================================== --- htdocs/system/schema/pgsql/schema.sql (revision 3102) +++ htdocs/system/schema/pgsql/schema.sql (working copy) @@ -235,6 +235,8 @@ id INTEGER NOT NULL DEFAULT nextval('{$prefix}tokens_pkey_seq'), name VARCHAR(255) NOT NULL, description VARCHAR(255) NULL, + token_type INT UNSIGNED NOT NULL DEFAULT 0, + token_group VARCHAR(255) NULL, PRIMARY KEY (id), UNIQUE (name) ); @@ -257,4 +259,4 @@ token_id INTEGER NOT NULL, permission_id SMALLINT NOT NULL, PRIMARY KEY (user_id, token_id) -); +); \ No newline at end of file Index: htdocs/system/schema/sqlite/schema.sql =================================================================== --- htdocs/system/schema/sqlite/schema.sql (revision 3102) +++ htdocs/system/schema/sqlite/schema.sql (working copy) @@ -200,7 +200,9 @@ CREATE TABLE {$prefix}tokens ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255) NOT NULL, - description VARCHAR(255) NULL + description VARCHAR(255) NULL, + token_type INT UNSIGNED NOT NULL DEFAULT 0, + token_group VARCHAR(255) NULL ); CREATE UNIQUE INDEX IF NOT EXISTS name ON {$prefix}tokens(name); @@ -223,4 +225,4 @@ token_id INTEGER NOT NULL, permission_id TINYINT UNSIGNED NOT NULL, PRIMARY KEY (user_id, token_id) -); +); \ No newline at end of file