DB consistency fix

pull/306/merge
Justin Richer 2013-02-05 11:11:15 -05:00
parent 801a45cc49
commit 173281f039
2 changed files with 5 additions and 5 deletions

View File

@ -165,8 +165,8 @@ CREATE TABLE IF NOT EXISTS system_scope (
scope VARCHAR(1024),
description VARCHAR(4096),
icon VARCHAR(256),
allow_dyn_reg BOOLEAN,
default_scope BOOLEAN
allow_dyn_reg BOOLEAN NOT NULL DEFAULT false,
default_scope BOOLEAN NOT NULL DEFAULT false
);
CREATE TABLE IF NOT EXISTS user_info (

View File

@ -155,13 +155,13 @@ CREATE TABLE token_scope (
scope VARCHAR(2048)
);
CREATE TABLE IF NOT EXISTS site_scope (
CREATE TABLE system_scope (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
scope VARCHAR(1024),
description VARCHAR(4096),
icon VARCHAR(256),
allow_dyn_reg BOOLEAN,
default_scope BOOLEAN
allow_dyn_reg BOOLEAN NOT NULL DEFAULT 0,
default_scope BOOLEAN NOT NULL DEFAULT 0
);
CREATE TABLE user_info (