···11CREATE TABLE `delivery_logs` (
22 `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
33 `subscription_uri` text NOT NULL,
44+ `action_index` integer DEFAULT 0 NOT NULL,
45 `event_time_us` integer NOT NULL,
56 `payload` text,
67 `status_code` integer,
···3334 `did` text NOT NULL,
3435 `rkey` text NOT NULL,
3536 `lexicon` text NOT NULL,
3636- `callback_url` text NOT NULL,
3737+ `actions` text DEFAULT '[]' NOT NULL,
3738 `conditions` text DEFAULT '[]' NOT NULL,
3838- `secret` text NOT NULL,
3939 `active` integer DEFAULT false NOT NULL,
4040 `indexed_at` integer NOT NULL
4141);
-20
lib/db/migrations/0001_early_kronos.sql
···11-PRAGMA foreign_keys=OFF;--> statement-breakpoint
22-CREATE TABLE `__new_subscriptions` (
33- `uri` text PRIMARY KEY NOT NULL,
44- `did` text NOT NULL,
55- `rkey` text NOT NULL,
66- `type` text DEFAULT 'webhook' NOT NULL,
77- `lexicon` text NOT NULL,
88- `callback_url` text,
99- `conditions` text DEFAULT '[]' NOT NULL,
1010- `secret` text,
1111- `target_collection` text,
1212- `record_template` text,
1313- `active` integer DEFAULT false NOT NULL,
1414- `indexed_at` integer NOT NULL
1515-);
1616---> statement-breakpoint
1717-INSERT INTO `__new_subscriptions`("uri", "did", "rkey", "type", "lexicon", "callback_url", "conditions", "secret", "target_collection", "record_template", "active", "indexed_at") SELECT "uri", "did", "rkey", "type", "lexicon", "callback_url", "conditions", "secret", "target_collection", "record_template", "active", "indexed_at" FROM `subscriptions`;--> statement-breakpoint
1818-DROP TABLE `subscriptions`;--> statement-breakpoint
1919-ALTER TABLE `__new_subscriptions` RENAME TO `subscriptions`;--> statement-breakpoint
2020-PRAGMA foreign_keys=ON;