From 0b9c1fd7408fc70495ca31de4acf76377674ba99 Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@lyda.ie>
Date: Tue, 6 May 2025 08:47:59 +0100
Subject: [PATCH] More notes

---
 NOTES.md             | 2 ++
 accounts/accounts.go | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/NOTES.md b/NOTES.md
index 5b09ab7..d33a485 100644
--- a/NOTES.md
+++ b/NOTES.md
@@ -14,6 +14,8 @@ Have readline store a history file for the user.  Configure at the `accounts.Ope
 
 Look up how godoc does references to other things.
 
+Look up how to run migrations on the db from embedded files.
+
 ## Things to do
 
   * Implement a better dclish parser.
diff --git a/accounts/accounts.go b/accounts/accounts.go
index 7bedc9c..11e68a4 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -55,6 +55,7 @@ func Open(acc string) error {
 	if err != nil {
 		return errors.New("account preference database problem")
 	}
+	// TODO: run prefs migration - move this to a storage module.
 
 	bulldir := path.Join(xdg.DataHome, "BULLETIN")
 	err = os.MkdirAll(bulldir, 0700)
@@ -65,6 +66,7 @@ func Open(acc string) error {
 	if err != nil {
 		return errors.New("bulletin database problem")
 	}
+	// TODO: run prefs migration - move this to a storage module.
 
 	return nil
 }
-- 
GitLab