mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: drop shortcut
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
var Version = "0.15.2"
|
var Version = "0.15.2"
|
||||||
|
|
||||||
// DevVersion is the service current development version.
|
// DevVersion is the service current development version.
|
||||||
var DevVersion = "0.15.2"
|
var DevVersion = "0.16.0"
|
||||||
|
|
||||||
func GetCurrentVersion(mode string) string {
|
func GetCurrentVersion(mode string) string {
|
||||||
if mode == "dev" || mode == "demo" {
|
if mode == "dev" || mode == "demo" {
|
||||||
|
@@ -59,17 +59,6 @@ CREATE TABLE memo_organizer (
|
|||||||
UNIQUE(memo_id, user_id)
|
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
|
-- resource
|
||||||
CREATE TABLE resource (
|
CREATE TABLE resource (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
@@ -8,6 +8,6 @@ SET memo_id = (
|
|||||||
LIMIT 1
|
LIMIT 1
|
||||||
);
|
);
|
||||||
|
|
||||||
DROP TABLE memo_resource;
|
|
||||||
|
|
||||||
CREATE INDEX idx_resource_memo_id ON resource (memo_id);
|
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;
|
Reference in New Issue
Block a user