chore: drop shortcut

This commit is contained in:
Steven 2023-09-27 07:28:17 +08:00
parent 9d1c9fc505
commit 71ee299de7
4 changed files with 4 additions and 14 deletions

View file

@ -12,7 +12,7 @@ import (
var Version = "0.15.2"
// DevVersion is the service current development version.
var DevVersion = "0.15.2"
var DevVersion = "0.16.0"
func GetCurrentVersion(mode string) string {
if mode == "dev" || mode == "demo" {

View file

@ -59,17 +59,6 @@ CREATE TABLE memo_organizer (
UNIQUE(memo_id, user_id)
);
-- shortcut
CREATE TABLE shortcut (
id INTEGER PRIMARY KEY AUTOINCREMENT,
creator_id INTEGER NOT NULL,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL',
title TEXT NOT NULL DEFAULT '',
payload TEXT NOT NULL DEFAULT '{}'
);
-- resource
CREATE TABLE resource (
id INTEGER PRIMARY KEY AUTOINCREMENT,

View file

@ -8,6 +8,6 @@ SET memo_id = (
LIMIT 1
);
DROP TABLE memo_resource;
CREATE INDEX idx_resource_memo_id ON resource (memo_id);
DROP TABLE IF EXISTS memo_resource;

View file

@ -0,0 +1 @@
DROP TABLE IF EXISTS shortcut;