From 90f672b2888d8c72bf819f49ca861b817f4f50ee Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Sun, 6 Jun 2021 23:32:53 -0700 Subject: [PATCH] Bump version to v0.8 --- db/00-version.sql | 2 +- db/upgrade/v0.7-v0.8.sql | 5 +++-- src/version.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/db/00-version.sql b/db/00-version.sql index 23be6fa..6686897 100644 --- a/db/00-version.sql +++ b/db/00-version.sql @@ -8,4 +8,4 @@ CREATE OR REPLACE FUNCTION get_version() RETURNS VARCHAR AS $$SELECT major || '.' || minor FROM version $$ LANGUAGE SQL; -INSERT INTO version (major,minor) VALUES (0,7); +INSERT INTO version (major,minor) VALUES (0,8); diff --git a/db/upgrade/v0.7-v0.8.sql b/db/upgrade/v0.7-v0.8.sql index c5d5ab7..af83dae 100644 --- a/db/upgrade/v0.7-v0.8.sql +++ b/db/upgrade/v0.7-v0.8.sql @@ -1,5 +1,7 @@ BEGIN; +UPDATE version SET minor = 8; + ALTER TABLE config ALTER COLUMN normaluservotepoints SET DEFAULT 10, ALTER COLUMN followervotepoints SET DEFAULT 50, @@ -30,5 +32,4 @@ CREATE OR REPLACE VIEW ratelimit_vw AS )) AS ratelimit(reqcount); -ROLLBACK; ---COMMIT; +COMMIT; diff --git a/src/version.ts b/src/version.ts index 2751ddf..58b3b13 100644 --- a/src/version.ts +++ b/src/version.ts @@ -5,7 +5,7 @@ import pg from "pg"; import db from "./db"; var versionMajor = 0; -var versionMinor = 7; +var versionMinor = 8; var versionPatch = 0; export function getVersion() {