typo fix, DB constraints

pull/306/merge
Justin Richer 2013-02-05 14:40:06 -05:00
parent 88f2ea3e7e
commit 02846c0a8d
3 changed files with 7 additions and 5 deletions

View File

@ -119,7 +119,7 @@ public class ScopeAPI {
scopeService.remove(existing);
return "httpCodeview";
return "httpCodeView";
} else {
m.put("code", HttpStatus.NOT_FOUND);

View File

@ -162,11 +162,12 @@ CREATE TABLE IF NOT EXISTS token_scope (
CREATE TABLE IF NOT EXISTS system_scope (
id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY,
scope VARCHAR(1024),
scope VARCHAR(1024) NOT NULL,
description VARCHAR(4096),
icon VARCHAR(256),
allow_dyn_reg BOOLEAN NOT NULL DEFAULT false,
default_scope BOOLEAN NOT NULL DEFAULT false
default_scope BOOLEAN NOT NULL DEFAULT false,
UNIQUE scope
);
CREATE TABLE IF NOT EXISTS user_info (

View File

@ -157,11 +157,12 @@ CREATE TABLE token_scope (
CREATE TABLE system_scope (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
scope VARCHAR(1024),
scope VARCHAR(1024) UNIQUE NOT NULL,
description VARCHAR(4096),
icon VARCHAR(256),
allow_dyn_reg BOOLEAN NOT NULL DEFAULT 0,
default_scope BOOLEAN NOT NULL DEFAULT 0
default_scope BOOLEAN NOT NULL DEFAULT 0,
);
CREATE TABLE user_info (