Follow these steps to set up the database tables for the Daily Tasks feature.
- Go to https://supabase.com
- Sign in to your account
- Select your project (the same one you're using for the kanban board)
- In the left sidebar, click on "SQL Editor" (it has a database icon)
- You should see a blank SQL editor window
- Click the "New query" button (usually at the top)
- Give it a name like "Daily Tasks Migration" (optional)
- Open the file
supabase_migration.sqlin your project - Copy ALL the contents of that file
- Paste it into the SQL Editor in Supabase
- Click the "Run" button (or press
Ctrl+Enter/Cmd+Enter) - You should see a success message like "Success. No rows returned"
- If you see any errors, check the error message and let me know
- In the left sidebar, click on "Table Editor"
- You should now see two new tables:
daily_tasksdaily_activity
- Your existing
kanban_itemstable should still be there (unchanged)
- In the left sidebar, click on "Database" → "Replication"
- You should see
daily_tasksin the list of replicated tables - If it's not there, the migration should have added it automatically
- Go back to your website
- Navigate to the
/dailypage - Log in with your access code (same as kanban board)
- Try adding a task - it should work now!
- The tables might already exist - that's okay! The migration uses
IF NOT EXISTSso it's safe to run multiple times.
- The migration now handles this by dropping existing policies first. If you still see this, you can manually delete the policies and re-run.
- Make sure you're running the SQL as the database owner/admin
- Check that you have the correct permissions in your Supabase project
- Check the browser console (F12) for error messages
- Verify the table names match:
daily_tasks(notdaily_taskordaily_tasks_table) - Make sure you're logged in with your access code
-
daily_taskstable: Stores all your daily tasks- Columns: id, user_id, title, description, is_completed, date, created_at
-
daily_activitytable: Tracks daily completion stats (optional)- Columns: user_id, date, tasks_completed
-
Indexes: For faster queries
-
RLS Policies: Row Level Security policies (currently open for access code system)
-
Realtime: Enables live updates when tasks change
- This migration is safe - it won't affect your existing
kanban_itemstable - You can run it multiple times without issues
- The tables are completely separate from your kanban board