krona-staff/migrations/0011_offline_sync_backend.down.sql
Ochenstarik 5ee75177b9 feat(sync): add offline sync backend foundation
- Add PostgreSQL migrations with strict RLS policies (0011)
- Introduce SyncService for handling auth, token-based registration
- Add payload size and replay attack mitigations
- Provide HTTP fastify routes (pull, push, ack, device management)
- Validate openapi contracts and add comprehensive tests
2026-09-26 13:10:27 +07:00

5 lines
247 B
SQL

DROP FUNCTION IF EXISTS staff_sync_cleanup_retention(INTEGER);
DROP TABLE IF EXISTS staff_sync_device_checkpoints;
DROP TABLE IF EXISTS staff_sync_command_inbox;
DROP TABLE IF EXISTS staff_sync_change_log;
DROP TABLE IF EXISTS staff_sync_devices;