You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
40 lines
1.7 KiB
CREATE TABLE `scheduled_tasks` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`name` text NOT NULL,
|
|
`cron_expression` text NOT NULL,
|
|
`type` text NOT NULL,
|
|
`function_name` text,
|
|
`function_payload` text,
|
|
`http_method` text,
|
|
`http_url` text,
|
|
`http_headers` text,
|
|
`http_body` text,
|
|
`catch_up` integer DEFAULT 0 NOT NULL,
|
|
`enabled` integer DEFAULT 1 NOT NULL,
|
|
`max_retries` integer DEFAULT 0 NOT NULL,
|
|
`retry_delay_seconds` integer DEFAULT 60 NOT NULL,
|
|
`timeout_seconds` integer DEFAULT 300 NOT NULL,
|
|
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `task_execution_logs` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`task_id` text NOT NULL,
|
|
`status` text NOT NULL,
|
|
`started_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
`finished_at` integer,
|
|
`error_message` text,
|
|
`result_summary` text,
|
|
FOREIGN KEY (`task_id`) REFERENCES `scheduled_tasks`(`id`) ON UPDATE no action ON DELETE no action
|
|
);
|
|
--> statement-breakpoint
|
|
DROP INDEX `users_public_slug_unique`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `public_slug`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `bio_markdown`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `bio_visibility`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `social_links_json`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `avatar_visibility`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `discover_visible`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `discover_location`;--> statement-breakpoint
|
|
ALTER TABLE `users` DROP COLUMN `discover_show_location`;
|