From 91708da5fcaf108c6a29e4a15a21dfc9f7c6d50e Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 24 Dec 2023 00:32:29 +0800 Subject: [PATCH] chore: update dev version --- server/version/version.go | 2 +- store/db/postgres/migration/dev/LATEST.sql | 9 -------- store/db/postgres/migration/prod/LATEST.sql | 25 --------------------- 3 files changed, 1 insertion(+), 35 deletions(-) diff --git a/server/version/version.go b/server/version/version.go index 2330b829..bbfffd7d 100644 --- a/server/version/version.go +++ b/server/version/version.go @@ -12,7 +12,7 @@ import ( var Version = "0.5.0" // DevVersion is the service current development version. -var DevVersion = "0.5.0" +var DevVersion = "0.5.1" func GetCurrentVersion(mode string) string { if mode == "dev" || mode == "demo" { diff --git a/store/db/postgres/migration/dev/LATEST.sql b/store/db/postgres/migration/dev/LATEST.sql index ee6817fb..296f8711 100644 --- a/store/db/postgres/migration/dev/LATEST.sql +++ b/store/db/postgres/migration/dev/LATEST.sql @@ -1,12 +1,3 @@ -DROP TABLE IF EXISTS migration_history CASCADE; -DROP TABLE IF EXISTS workspace_setting CASCADE; -DROP TABLE IF EXISTS "user" CASCADE; -DROP TABLE IF EXISTS user_setting CASCADE; -DROP TABLE IF EXISTS shortcut CASCADE; -DROP TABLE IF EXISTS activity CASCADE; -DROP TABLE IF EXISTS collection CASCADE; -DROP TABLE IF EXISTS memo CASCADE; - -- migration_history CREATE TABLE migration_history ( version TEXT NOT NULL PRIMARY KEY, diff --git a/store/db/postgres/migration/prod/LATEST.sql b/store/db/postgres/migration/prod/LATEST.sql index ee6817fb..75e06831 100644 --- a/store/db/postgres/migration/prod/LATEST.sql +++ b/store/db/postgres/migration/prod/LATEST.sql @@ -1,12 +1,3 @@ -DROP TABLE IF EXISTS migration_history CASCADE; -DROP TABLE IF EXISTS workspace_setting CASCADE; -DROP TABLE IF EXISTS "user" CASCADE; -DROP TABLE IF EXISTS user_setting CASCADE; -DROP TABLE IF EXISTS shortcut CASCADE; -DROP TABLE IF EXISTS activity CASCADE; -DROP TABLE IF EXISTS collection CASCADE; -DROP TABLE IF EXISTS memo CASCADE; - -- migration_history CREATE TABLE migration_history ( version TEXT NOT NULL PRIMARY KEY, @@ -83,19 +74,3 @@ CREATE TABLE collection ( ); CREATE INDEX idx_collection_name ON collection(name); - --- memo -CREATE TABLE memo ( - id SERIAL PRIMARY KEY, - creator_id INTEGER REFERENCES "user"(id) NOT NULL, - created_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()), - updated_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()), - row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL', - name TEXT NOT NULL UNIQUE, - title TEXT NOT NULL DEFAULT '', - content TEXT NOT NULL DEFAULT '', - visibility TEXT NOT NULL CHECK (visibility IN ('PRIVATE', 'WORKSPACE', 'PUBLIC')) DEFAULT 'PRIVATE', - tag TEXT NOT NULL DEFAULT '' -); - -CREATE INDEX idx_memo_name ON memo(name);