modify schema

This commit is contained in:
DOHA 2015-11-14 21:52:48 +02:00
parent 4c6b19b91d
commit a2358d12ff
1 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,5 @@
-- used in tests that use HSQL
create table if not exists oauth_client_details (
drop table if exists oauth_client_details;
create table oauth_client_details (
client_id VARCHAR(255) PRIMARY KEY,
resource_ids VARCHAR(255),
client_secret VARCHAR(255),
@ -13,7 +13,8 @@ create table if not exists oauth_client_details (
autoapprove VARCHAR(255)
);
create table if not exists oauth_client_token (
drop table if exists oauth_client_token;
create table oauth_client_token (
token_id VARCHAR(255),
token LONG VARBINARY,
authentication_id VARCHAR(255) PRIMARY KEY,
@ -21,7 +22,8 @@ create table if not exists oauth_client_token (
client_id VARCHAR(255)
);
create table if not exists oauth_access_token (
drop table if exists oauth_access_token;
create table oauth_access_token (
token_id VARCHAR(255),
token LONG VARBINARY,
authentication_id VARCHAR(255) PRIMARY KEY,
@ -31,17 +33,20 @@ create table if not exists oauth_access_token (
refresh_token VARCHAR(255)
);
create table if not exists oauth_refresh_token (
drop table if exists oauth_refresh_token;
create table oauth_refresh_token (
token_id VARCHAR(255),
token LONG VARBINARY,
authentication LONG VARBINARY
);
create table if not exists oauth_code (
drop table if exists oauth_code;
create table oauth_code (
code VARCHAR(255), authentication LONG VARBINARY
);
create table if not exists oauth_approvals (
drop table if exists oauth_approvals;
create table oauth_approvals (
userId VARCHAR(255),
clientId VARCHAR(255),
scope VARCHAR(255),
@ -50,8 +55,8 @@ create table if not exists oauth_approvals (
lastModifiedAt TIMESTAMP
);
-- customized oauth_client_details table
create table if not exists ClientDetails (
drop table if exists ClientDetails;
create table ClientDetails (
appId VARCHAR(255) PRIMARY KEY,
resourceIds VARCHAR(255),
appSecret VARCHAR(255),