Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: bump version

Steven6e1b01cb6835
diff --git a/internal/version/version.go b/internal/version/version.go
index 828f7ac1c..fc6b8c240 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -9,10 +9,10 @@ import (
// Version is the service current released version.
// Semantic versioning: https://semver.org/
-var Version = "0.24.4"
+var Version = "0.25.0"
// DevVersion is the service current development version.
-var DevVersion = "0.24.4"
+var DevVersion = "0.25.0"
func GetCurrentVersion(mode string) string {
if mode == "dev" || mode == "demo" {
diff --git a/store/migration/mysql/0.25/00__remove_webhook.sql b/store/migration/mysql/0.25/00__remove_webhook.sql
new file mode 100644
index 000000000..f60efc073
--- /dev/null
+++ b/store/migration/mysql/0.25/00__remove_webhook.sql
@@ -0,0 +1 @@
+DROP TABLE IF EXISTS webhook;
diff --git a/store/migration/mysql/LATEST.sql b/store/migration/mysql/LATEST.sql
index dbd76612b..e5ae04dfa 100644
--- a/store/migration/mysql/LATEST.sql
+++ b/store/migration/mysql/LATEST.sql
@@ -110,17 +110,6 @@ CREATE TABLE `inbox` (
`message` TEXT NOT NULL
);
--- webhook
-CREATE TABLE `webhook` (
- `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- `created_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `updated_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `row_status` VARCHAR(256) NOT NULL DEFAULT 'NORMAL',
- `creator_id` INT NOT NULL,
- `name` TEXT NOT NULL,
- `url` TEXT NOT NULL
-);
-
-- reaction
CREATE TABLE `reaction` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
diff --git a/store/migration/postgres/0.25/00__remove_webhook.sql b/store/migration/postgres/0.25/00__remove_webhook.sql
new file mode 100644
index 000000000..f60efc073
--- /dev/null
+++ b/store/migration/postgres/0.25/00__remove_webhook.sql
@@ -0,0 +1 @@
+DROP TABLE IF EXISTS webhook;
diff --git a/store/migration/postgres/LATEST.sql b/store/migration/postgres/LATEST.sql
index 0eca0d740..66df2848c 100644
--- a/store/migration/postgres/LATEST.sql
+++ b/store/migration/postgres/LATEST.sql
@@ -110,17 +110,6 @@ CREATE TABLE inbox (
message TEXT NOT NULL
);
--- webhook
-CREATE TABLE webhook (
- id SERIAL PRIMARY KEY,
- 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 DEFAULT 'NORMAL',
- creator_id INTEGER NOT NULL,
- name TEXT NOT NULL,
- url TEXT NOT NULL
-);
-
-- reaction
CREATE TABLE reaction (
id SERIAL PRIMARY KEY,
diff --git a/store/migration/sqlite/0.25/00__remove_webhook.sql b/store/migration/sqlite/0.25/00__remove_webhook.sql
new file mode 100644
index 000000000..90d89dcc7
--- /dev/null
+++ b/store/migration/sqlite/0.25/00__remove_webhook.sql
@@ -0,0 +1,3 @@
+DROP INDEX IF EXISTS idx_webhook_creator_id;
+
+DROP TABLE IF EXISTS webhook;
diff --git a/store/migration/sqlite/LATEST.sql b/store/migration/sqlite/LATEST.sql
index 0fe39cc42..37f77125f 100644
--- a/store/migration/sqlite/LATEST.sql
+++ b/store/migration/sqlite/LATEST.sql
@@ -119,19 +119,6 @@ CREATE TABLE inbox (
message TEXT NOT NULL DEFAULT '{}'
);
--- webhook
-CREATE TABLE webhook (
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- 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',
- creator_id INTEGER NOT NULL,
- name TEXT NOT NULL,
- url TEXT NOT NULL
-);
-
-CREATE INDEX idx_webhook_creator_id ON webhook (creator_id);
-
-- reaction
CREATE TABLE reaction (
id INTEGER PRIMARY KEY AUTOINCREMENT,
diff --git a/store/test/store.go b/store/test/store.go
index b543d8712..5ae05e51b 100644
--- a/store/test/store.go
+++ b/store/test/store.go
@@ -50,7 +50,6 @@ func resetTestingDB(ctx context.Context, profile *profile.Profile, dbDriver stor
DROP TABLE IF EXISTS storage;
DROP TABLE IF EXISTS idp;
DROP TABLE IF EXISTS inbox;
- DROP TABLE IF EXISTS webhook;
DROP TABLE IF EXISTS reaction;`)
if err != nil {
slog.Error("failed to reset testing db", slog.String("error", err.Error()))
@@ -71,7 +70,6 @@ func resetTestingDB(ctx context.Context, profile *profile.Profile, dbDriver stor
DROP TABLE IF EXISTS storage CASCADE;
DROP TABLE IF EXISTS idp CASCADE;
DROP TABLE IF EXISTS inbox CASCADE;
- DROP TABLE IF EXISTS webhook CASCADE;
DROP TABLE IF EXISTS reaction CASCADE;`)
if err != nil {
slog.Error("failed to reset testing db", slog.String("error", err.Error()))