diff options
author | 2024-03-22 14:03:46 +0100 | |
---|---|---|
committer | 2024-03-22 14:03:46 +0100 | |
commit | 7f4a0a1aeb8a294ee967c63d7a48446df013ec44 (patch) | |
tree | b9b3836fa0abe1d7a5758d07d6ebb6486a353d56 /internal/db/account.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 'internal/db/account.go')
-rw-r--r-- | internal/db/account.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/db/account.go b/internal/db/account.go index 505ca4004..3de72c5a8 100644 --- a/internal/db/account.go +++ b/internal/db/account.go @@ -117,4 +117,13 @@ type Account interface { // GetInstanceAccount returns the instance account for the given domain. // If domain is empty, this instance account will be returned. GetInstanceAccount(ctx context.Context, domain string) (*gtsmodel.Account, error) + + // Get local account settings with the given ID. + GetAccountSettings(ctx context.Context, id string) (*gtsmodel.AccountSettings, error) + + // Store local account settings. + PutAccountSettings(ctx context.Context, settings *gtsmodel.AccountSettings) error + + // Update local account settings. + UpdateAccountSettings(ctx context.Context, settings *gtsmodel.AccountSettings, columns ...string) error } |