d782d8469c
Previously, the application only applied the schema if auth.users table didn't exist. This caused issues when upgrading - new schema elements (like storage.trash_items view) weren't created on existing databases. Now the schema is applied on every startup. Since schema.sql uses 'IF NOT EXISTS' and 'CREATE OR REPLACE', it's safe to run repeatedly.