web sitesi yönetimi
This commit is contained in:
9
supabase_migration_tiktok.sql
Normal file
9
supabase_migration_tiktok.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Rename social_twitter to social_tiktok if it exists
|
||||
UPDATE site_contents
|
||||
SET key = 'social_tiktok'
|
||||
WHERE key = 'social_twitter';
|
||||
|
||||
-- If social_twitter didn't exist, insert social_tiktok (handling the case where it might already exist to avoid unique constraint error)
|
||||
INSERT INTO site_contents (key, value, type, section)
|
||||
VALUES ('social_tiktok', '', 'text', 'contact')
|
||||
ON CONFLICT (key) DO NOTHING;
|
||||
Reference in New Issue
Block a user