Skip to content

Commit

Permalink
chore: update dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Dec 23, 2023
1 parent 867d150 commit 91708da
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion server/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
9 changes: 0 additions & 9 deletions store/db/postgres/migration/dev/LATEST.sql
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
25 changes: 0 additions & 25 deletions store/db/postgres/migration/prod/LATEST.sql
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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);

0 comments on commit 91708da

Please sign in to comment.