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: update dev version

Stevenf4074881280b
diff --git a/server/version/version.go b/server/version/version.go
index 777ec744c..513dda2c0 100644
--- a/server/version/version.go
+++ b/server/version/version.go
@@ -10,7 +10,7 @@ import (
var Version = "0.5.0"
// DevVersion is the service current development version.
-var DevVersion = "0.5.0"
+var DevVersion = "0.6.0"
func GetCurrentVersion(mode string) string {
if mode == "dev" {
diff --git a/store/db/migration/prod/0.6/00__recreate_triggers.sql b/store/db/migration/prod/0.6/00__recreate_triggers.sql
new file mode 100644
index 000000000..06419dc2f
--- /dev/null
+++ b/store/db/migration/prod/0.6/00__recreate_triggers.sql
@@ -0,0 +1,55 @@
+DROP TRIGGER IF EXISTS `trigger_update_user_modification_time`;
+
+CREATE TRIGGER IF NOT EXISTS `trigger_update_user_modification_time`
+AFTER
+UPDATE
+ ON `user` FOR EACH ROW BEGIN
+UPDATE
+ `user`
+SET
+ updated_ts = (strftime('%s', 'now'))
+WHERE
+ rowid = old.rowid;
+END;
+
+DROP TRIGGER IF EXISTS `trigger_update_memo_modification_time`;
+
+CREATE TRIGGER IF NOT EXISTS `trigger_update_memo_modification_time`
+AFTER
+UPDATE
+ ON `memo` FOR EACH ROW BEGIN
+UPDATE
+ `memo`
+SET
+ updated_ts = (strftime('%s', 'now'))
+WHERE
+ rowid = old.rowid;
+END;
+
+DROP TRIGGER IF EXISTS `trigger_update_shortcut_modification_time`;
+
+CREATE TRIGGER IF NOT EXISTS `trigger_update_shortcut_modification_time`
+AFTER
+UPDATE
+ ON `shortcut` FOR EACH ROW BEGIN
+UPDATE
+ `shortcut`
+SET
+ updated_ts = (strftime('%s', 'now'))
+WHERE
+ rowid = old.rowid;
+END;
+
+DROP TRIGGER IF EXISTS `trigger_update_resource_modification_time`;
+
+CREATE TRIGGER IF NOT EXISTS `trigger_update_resource_modification_time`
+AFTER
+UPDATE
+ ON `resource` FOR EACH ROW BEGIN
+UPDATE
+ `resource`
+SET
+ updated_ts = (strftime('%s', 'now'))
+WHERE
+ rowid = old.rowid;
+END;