Files
shorebird-server/internal/db/migrations/002_patch_offline_expiry.sql
T
Tony 774954fce7 feat: implement patch expiration and encryption features
- Add offline expiration handling for patch artifacts in the database.
- Update CreatePatchArtifact and related functions to accept and return offline expiration timestamps.
- Enhance patch check responses to include offline expiration metadata.
- Introduce device-specific encryption for patches, allowing for secure delivery.
- Implement tests for patch check functionality, including scenarios for expired patches and encrypted delivery.
- Modify router and configuration to support new patch delivery settings.
- Update database schema and migrations to accommodate new fields for offline expiration.
2026-06-24 03:02:09 +08:00

10 lines
280 B
SQL

-- +goose Up
-- +goose StatementBegin
ALTER TABLE patch_artifacts ADD COLUMN IF NOT EXISTS offline_expires_at TIMESTAMPTZ;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE patch_artifacts DROP COLUMN IF EXISTS offline_expires_at;
-- +goose StatementEnd