diff options
author | 2024-03-22 14:03:46 +0100 | |
---|---|---|
committer | 2024-03-22 14:03:46 +0100 | |
commit | 7f4a0a1aeb8a294ee967c63d7a48446df013ec44 (patch) | |
tree | b9b3836fa0abe1d7a5758d07d6ebb6486a353d56 /testrig/db.go | |
parent | [bugfix] add all possible busy result codes to the sqlite errBusy catching ch... (diff) | |
download | gotosocial-7f4a0a1aeb8a294ee967c63d7a48446df013ec44.tar.xz |
[chore] Move local account settings to separate db table (#2770)
* [chore] Move local account settings to separate database model
* don't use separate settings_id
Diffstat (limited to 'testrig/db.go')
-rw-r--r-- | testrig/db.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testrig/db.go b/testrig/db.go index a83d93b16..83bc46ec8 100644 --- a/testrig/db.go +++ b/testrig/db.go @@ -70,6 +70,7 @@ var testModels = []interface{}{ >smodel.Report{}, >smodel.Rule{}, >smodel.AccountNote{}, + >smodel.AccountSettings{}, } // NewTestDB returns a new initialized, empty database for testing. @@ -206,6 +207,12 @@ func StandardDBSetup(db db.DB, accounts map[string]*gtsmodel.Account) { } } + for _, v := range NewTestAccountSettings() { + if err := db.Put(ctx, v); err != nil { + log.Panic(nil, err) + } + } + for _, v := range NewTestAttachments() { if err := db.Put(ctx, v); err != nil { log.Panic(nil, err) |