- GET and PATCH /me/settings: settings that belong to the signed-in user. - First setting, discover_from_listening, is off by default. When on, Discover may start from the artists I listen to most, which sends their names to Last.fm. - New user_settings table (migration 0011, SQLite and PostgreSQL), removed with the account. A user with no row has the private defaults. - A misspelt setting is rejected instead of being ignored. - Spec, contract test and README updated. Refs #29
10 lines
497 B
SQL
10 lines
497 B
SQL
-- Settings that belong to one user. A user with no row has the defaults, which are
|
|
-- the private ones: everything that sends something to a provider is off.
|
|
--
|
|
-- discover_from_listening: Discover may start from the artists the user listens to
|
|
-- most, which sends their names to Last.fm to ask for similar artists.
|
|
|
|
CREATE TABLE user_settings (
|
|
user_id BIGINT PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE,
|
|
discover_from_listening BOOLEAN NOT NULL DEFAULT FALSE
|
|
);
|