mirror of
https://github.com/usememos/memos.git
synced 2024-12-24 22:23:01 +08:00
chore: drop shortcut
This commit is contained in:
parent
9d1c9fc505
commit
71ee299de7
4 changed files with 4 additions and 14 deletions
|
@ -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" {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
1
store/db/migration/prod/0.16/01__drop_shortcut_table.sql
Normal file
1
store/db/migration/prod/0.16/01__drop_shortcut_table.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE IF EXISTS shortcut;
|
Loading…
Reference in a new issue