peppa/packages/db/migrations/0034_grant_terms.sql
peppa-bot 5019e1ad80
All checks were successful
peppa/lint lint: success за 2с
peppa/typecheck typecheck: success за 53с
peppa/build build: success за 36с
peppa/test test: success за 1546с
peppa-ci / ci (pull_request) Successful in 28m56s
Merge branch 'main' into task/pep-259
Миграция сроков разрешений переименована в 0034 (0033 заняла PEP-252).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:54:14 +00:00

9 lines
681 B
SQL

ALTER TABLE `connection_grants` ADD `term` text DEFAULT 'forever' NOT NULL;--> statement-breakpoint
ALTER TABLE `connection_grants` ADD `expires_at` integer;--> statement-breakpoint
ALTER TABLE `connection_grants` ADD `granted_at` integer;--> statement-breakpoint
ALTER TABLE `connection_grants` ADD `last_used_at` integer;--> statement-breakpoint
ALTER TABLE `connection_grants` ADD `ended_at` integer;--> statement-breakpoint
ALTER TABLE `connection_grants` ADD `end_reason` text;--> statement-breakpoint
ALTER TABLE `connections` ADD `idle_revoke_hours` integer;--> statement-breakpoint
UPDATE `connection_grants` SET `granted_at` = CAST(unixepoch('subsec') * 1000 AS INTEGER);