From a7e765cb80823dad57483ab349a56e0bc9b36828 Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Fri, 16 Jan 2026 14:06:14 +0100 Subject: [PATCH] fix: add DROP statements to supabase-setup.sql for clean reinstalls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: Configure OAuth providers in Supabase dashboard: - Google: Add Client ID and Secret from Google Cloud Console - GitHub: Add Client ID and Secret from GitHub Developer Settings - Set redirect URLs in Authentication → URL Configuration --- supabase-setup.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/supabase-setup.sql b/supabase-setup.sql index 0b0ff36..0134774 100644 --- a/supabase-setup.sql +++ b/supabase-setup.sql @@ -1,6 +1,11 @@ -- CODE CRISPIES - Supabase Database Setup -- Run this in Supabase Dashboard → SQL Editor → New Query +-- Drop existing objects first + DROP FUNCTION IF EXISTS delete_own_account(); + DROP TABLE IF EXISTS user_progress; + DROP TABLE IF EXISTS newsletter_subscribers; + -- User progress table CREATE TABLE user_progress ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(),