fix: resolve session refresh issue post space creation

Ensure session cookies are updated before server navigation for both new and returning users.

Co-authored-by: Moheeb Zara <1184415+virgilvox@users.noreply.github.com>
This commit is contained in:
v0
2026-03-11 06:48:38 +00:00
co-authored by Moheeb Zara
parent e36dee2601
commit 4ef8438630
19 changed files with 371 additions and 2219 deletions
-14
View File
@@ -12,20 +12,6 @@ scripts/schema.sql
This creates the entire schema from scratch — all tables, enums, indexes, RLS policies, functions, and triggers. Idempotent, can be run multiple times safely.
### Existing deployment migration
If you have a legacy Hackerspace database and want to sync it to the canonical schema:
```
scripts/012_canonical_sync.sql
```
This migration adds all missing columns, renames `full_name` → `display_name`, creates missing constraints, fixes the auth trigger, and updates all other tables to match the canonical schema. Also idempotent — safe to run multiple times.
### Migration history (reference only)
Scripts `001_*` through `011_*` represent the evolution of the live database. **Do not re-run them.** They exist for historical reference.
### What `schema.sql` contains
| Section | Contents |