parent
6495e1c8ef
commit
d2cf4aa1d2
|
@ -8,4 +8,4 @@ CREATE OR REPLACE FUNCTION get_version() RETURNS VARCHAR
|
||||||
AS $$SELECT major || '.' || minor FROM version $$
|
AS $$SELECT major || '.' || minor FROM version $$
|
||||||
LANGUAGE SQL;
|
LANGUAGE SQL;
|
||||||
|
|
||||||
INSERT INTO version (major,minor) VALUES (0,3);
|
INSERT INTO version (major,minor) VALUES (0,4);
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
UPDATE version SET minor = 4;
|
||||||
|
|
||||||
|
ALTER TABLE config ADD COLUMN title varchar, ADD COLUMN colors jsonb;
|
||||||
|
UPDATE config SET title = '{username}''s Learn Request Queue', colors = '{"bg": {"primary": "#444444","table": "#282828","navbar" : "#666666","error": "#ff0000"},"fg": {"primary": "#dddddd","ahover": "#ffffff","title": "#eeeeee"}}';
|
||||||
|
ALTER TABLE config ALTER COLUMN title SET NOT NULL, ALTER COLUMN colors SET NOT NULL;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -441,7 +441,8 @@ app.get("/", async (request, response) => {
|
||||||
urlPrefix: config.urlPrefix,
|
urlPrefix: config.urlPrefix,
|
||||||
pageTitle: streamerConfig.title,
|
pageTitle: streamerConfig.title,
|
||||||
streamerName: streamerInfo['displayname'],
|
streamerName: streamerInfo['displayname'],
|
||||||
streamerProfilePicture: streamerInfo['imageurl']
|
streamerProfilePicture: streamerInfo['imageurl'],
|
||||||
|
colors: streamerConfig.colors
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var validStates = JSON.stringify((await db.query(queries.getValidStates).then((result: pg.QueryResult) => result.rows)).map((row: any) => row.state));
|
var validStates = JSON.stringify((await db.query(queries.getValidStates).then((result: pg.QueryResult) => result.rows)).map((row: any) => row.state));
|
||||||
|
|
|
@ -5,7 +5,7 @@ import pg from "pg";
|
||||||
import db from "./db";
|
import db from "./db";
|
||||||
|
|
||||||
var versionMajor = 0;
|
var versionMajor = 0;
|
||||||
var versionMinor = 3;
|
var versionMinor = 4;
|
||||||
var versionPatch = 0;
|
var versionPatch = 0;
|
||||||
|
|
||||||
export function getVersion() {
|
export function getVersion() {
|
||||||
|
|
Loading…
Reference in New Issue