@ -17,9 +16,9 @@ public class SqliteClientService extends SqliteStore implements ClientService {
@@ -17,9 +16,9 @@ public class SqliteClientService extends SqliteStore implements ClientService {
privatestaticfinalStringSELECT_STORE_VERSION="SELECT * FROM metainfo WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringSET_STORE_VERSION="UPDATE metainfo SET value = ? WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringCREATE_CLIENT_TABLE="CREATE TABLE IF NOT EXISTS clients(id VARCHAR(255) NOT NULL PRIMARY KEY, name VARCHAR(255), secret VARCHAR(255));";
privatestaticfinalStringCREATE_CLIENT_TABLE="CREATE TABLE IF NOT EXISTS clients(id VARCHAR(255) NOT NULL PRIMARY KEY, name VARCHAR(255), secret VARCHAR(255), landing_page VARCHAR(255));";
privatestaticfinalStringCREATE_REDIRECT_TABLE="CREATE TABLE IF NOT EXISTS client_redirects(clientId VARCHAR(255), uri VARCHAR(255), PRIMARY KEY(clientId, uri));";
privatestaticfinalStringSAVE_CLIENT="INSERT INTO clients (id, name, secret) VALUES (?,?,?) ON CONFLICT DO UPDATE SET name = ?, secret = ?;";
privatestaticfinalStringSAVE_CLIENT="INSERT INTO clients (id, name, secret, landing_page) VALUES (?,?,?,?) ON CONFLICT DO UPDATE SET name = ?, secret = ?, landing_page = ?;";
privatestaticfinalStringSAVE_REDIRECT="INSERT OR IGNORE INTO client_redirects(clientId, uri) VALUES (?, ?)";
privatestaticfinalStringDROP_OTHER_REDIRECTS="DELETE FROM client_redirects WHERE clientId = ? AND uri NOT IN";
privatestaticfinalStringSELECT_CLIENT="SELECT * FROM clients WHERE id = ?";
@ -87,9 +86,10 @@ public class SqliteClientService extends SqliteStore implements ClientService {
@@ -87,9 +86,10 @@ public class SqliteClientService extends SqliteStore implements ClientService {