diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-15 18:13:07 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-16 02:54:17 +0000 |
| commit | a2afca944b28d0253c02cf72aa210df3ed4b3de5 (patch) | |
| tree | 153e3a00004a8964778dd0cd8b853b22b3182fda /internal/store/native_tasks_test.go | |
| parent | 54e2f162c03ff7c732751ef35c266093c842c7bc (diff) | |
feat(tasks): add Projects CRUD store methods
Diffstat (limited to 'internal/store/native_tasks_test.go')
| -rw-r--r-- | internal/store/native_tasks_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/store/native_tasks_test.go b/internal/store/native_tasks_test.go index 6e93bca..0117bf5 100644 --- a/internal/store/native_tasks_test.go +++ b/internal/store/native_tasks_test.go @@ -46,6 +46,17 @@ func newNativeTasksTestStore(t *testing.T) *Store { `); err != nil { t.Fatal(err) } + if _, err := db.Exec(` + CREATE TABLE projects ( + id TEXT PRIMARY KEY, + name TEXT NOT NULL, + color TEXT DEFAULT '', + created_at DATETIME DEFAULT CURRENT_TIMESTAMP, + archived BOOLEAN DEFAULT 0 + ) + `); err != nil { + t.Fatal(err) + } if _, err := db.Exec(`INSERT INTO native_tasks (id, content) VALUES ('real-1', 'Real task')`); err != nil { t.Fatal(err) } |
