Skip to content

Commit f694cfc

Browse files
committed
down
1 parent 8036b87 commit f694cfc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

coderd/database/migrations/000293_user_configs.down.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ ALTER TABLE users ADD COLUMN IF NOT EXISTS
33
theme_preference text DEFAULT ''::text NOT NULL;
44

55
-- Copy "theme_preference" back to "users"
6-
UPDATE users (theme_preference)
7-
SELECT value
6+
UPDATE users
7+
SET theme_preference = (SELECT value
88
FROM user_configs
9-
WHERE users.id = user_configs.user_id
10-
AND user_configs.key = 'theme_preference';
9+
WHERE user_configs.user_id = users.id
10+
AND user_configs.key = 'theme_preference');
1111

1212
-- Drop the "user_configs" table.
1313
DROP TABLE user_configs;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy