modify schema
This commit is contained in:
parent
4c6b19b91d
commit
a2358d12ff
|
@ -1,5 +1,5 @@
|
||||||
-- used in tests that use HSQL
|
drop table if exists oauth_client_details;
|
||||||
create table if not exists oauth_client_details (
|
create table oauth_client_details (
|
||||||
client_id VARCHAR(255) PRIMARY KEY,
|
client_id VARCHAR(255) PRIMARY KEY,
|
||||||
resource_ids VARCHAR(255),
|
resource_ids VARCHAR(255),
|
||||||
client_secret VARCHAR(255),
|
client_secret VARCHAR(255),
|
||||||
|
@ -13,7 +13,8 @@ create table if not exists oauth_client_details (
|
||||||
autoapprove VARCHAR(255)
|
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_id VARCHAR(255),
|
||||||
token LONG VARBINARY,
|
token LONG VARBINARY,
|
||||||
authentication_id VARCHAR(255) PRIMARY KEY,
|
authentication_id VARCHAR(255) PRIMARY KEY,
|
||||||
|
@ -21,7 +22,8 @@ create table if not exists oauth_client_token (
|
||||||
client_id VARCHAR(255)
|
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_id VARCHAR(255),
|
||||||
token LONG VARBINARY,
|
token LONG VARBINARY,
|
||||||
authentication_id VARCHAR(255) PRIMARY KEY,
|
authentication_id VARCHAR(255) PRIMARY KEY,
|
||||||
|
@ -31,17 +33,20 @@ create table if not exists oauth_access_token (
|
||||||
refresh_token VARCHAR(255)
|
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_id VARCHAR(255),
|
||||||
token LONG VARBINARY,
|
token LONG VARBINARY,
|
||||||
authentication 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
|
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),
|
userId VARCHAR(255),
|
||||||
clientId VARCHAR(255),
|
clientId VARCHAR(255),
|
||||||
scope VARCHAR(255),
|
scope VARCHAR(255),
|
||||||
|
@ -50,8 +55,8 @@ create table if not exists oauth_approvals (
|
||||||
lastModifiedAt TIMESTAMP
|
lastModifiedAt TIMESTAMP
|
||||||
);
|
);
|
||||||
|
|
||||||
-- customized oauth_client_details table
|
drop table if exists ClientDetails;
|
||||||
create table if not exists ClientDetails (
|
create table ClientDetails (
|
||||||
appId VARCHAR(255) PRIMARY KEY,
|
appId VARCHAR(255) PRIMARY KEY,
|
||||||
resourceIds VARCHAR(255),
|
resourceIds VARCHAR(255),
|
||||||
appSecret VARCHAR(255),
|
appSecret VARCHAR(255),
|
||||||
|
|
Loading…
Reference in New Issue