Files
story/migrations/000073_customer_activity_history.down.sql
Codex Local bf1233d5df
ci / verify (push) Canceled after 0s
feat: expand companion platform, device controls, and memoir workflows
Add customer and operator login, BLE provisioning, device fleet controls, call memory, memoir generation, and refreshed family and maintenance portals. Include API contracts, migrations, firmware sources, tests, assets, and deployment documentation.
2026-10-08 10:06:44 +08:00

15 lines
777 B
PL/PgSQL

BEGIN;
DROP TRIGGER IF EXISTS household_member_web_event ON household_member;
DROP FUNCTION IF EXISTS household_member_web_event_trigger();
DROP INDEX IF EXISTS web_event_household_recent_idx;
ALTER TABLE web_event ALTER COLUMN expires_at SET DEFAULT (now() + interval '15 minutes');
DELETE FROM web_event WHERE event_type='household.member.updated';
ALTER TABLE web_event DROP CONSTRAINT web_event_event_type_check;
ALTER TABLE web_event ADD CONSTRAINT web_event_event_type_check CHECK (event_type IN (
'device.presence.changed','device.binding.reset',
'conversation.started','conversation.completed','conversation.failed',
'story.created','story.revised','media.upload.completed','export.ready',
'privacy_request.updated','device.command.updated'));
COMMIT;