Миграция сроков разрешений переименована в 0034 (0033 заняла PEP-252). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
681 B
SQL
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);
|