trypost/database/migrations
Paulo Castellano 58d8e066b5
Add workspace webhooks and drop the unused automation webhook node (#326)
* Add workspace webhooks and drop the unused automation webhook node.

Give workspaces HMAC-signed outgoing webhooks for the post lifecycle, with retry, auto-pause, replay, and live logs, and keep HTTP Request as the only outbound automation node.

* Tighten webhook controller and validation after review.

Drop the redundant workspace redirects, prune logs without counting, and validate events/status with Rule::enum.

* Move leftover webhook UI copy behind i18n.

HTTP status phrases, delete-cancel, and validation attribute names were still English literals.

* Build the webhook-paused email through Maizzle.

The hand-written Blade skipped the shared layout, header, and footer used by the other mail templates.

* Cover real webhook dispatch paths and restyle the webhook pages.

* Ask for the shared delete keyword when confirming a webhook delete.

The endpoint URL is a poor confirm string; posts and assets already use the common "delete" keyword.

* Fix webhook review blockers so CI can go green.

Drop leftover French automation keys, stop mutating Inertia log props, and show delivered_at instead of created_at.

* Close the remaining webhook review gaps.

Keep Echo log updates across infinite scroll, align the channel with the policy, persist log ids across retries, and fail unknown automation nodes without throwing.

* Stop webhook delivery after disable and record last sent only on success.

Queued jobs now skip paused or disabled endpoints unless the user replays, and changing the URL re-pings it first.

* Limit webhooks to owners and admins, and encrypt signing secrets.

Members can no longer create or inspect outgoing integrations, and secrets stay encrypted at rest.

* Cover webhook secret hiding, skip-ping, and failed-delivery edges.

* Send the full post on webhooks after labels and platforms are saved.

* Fix webhook payloads for integer media ids and type webhook status.

* Split the webhook show page into focused components.

* Reset live webhook logs when switching endpoints.

* Keep the newest webhook logs at the top after live merges.

* Cast media item ids to string without the extra scalar check.

* Add post.unscheduled webhooks and put the log id on the envelope.

Unscheduling is now a first-class event, and receivers can send the delivery id back so we can find the matching log.

* Translate webhook event names in the UI.

* Make the webhook show page full-width and stop stacking flash toasts.

* Translate remaining webhook UI copy in every locale.

* Sign webhook pings and drop author email from the payload.

* Send signed webhook tests after create instead of pinging on save.

Create and update only block private URLs so the receiver can copy the secret first. The show page then sends a signed webhook.test with an object data envelope.

* Polish webhook test UX and always mint the dispatch log id in the job.

Keep send-test in the actions menu (its own group) and drop the leftover constructor param so retries reuse the serialized id instead of a caller-supplied one.
2026-09-04 09:43:29 -03:00
..
0001_01_01_000000_create_users_table.php feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
0001_01_01_000001_create_cache_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
0001_01_01_000002_create_jobs_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_01_14_231039_create_plans_table.php feat: transition AI usage from feature-based limits to a centralized monthly credit system with token tracking. 2026-05-03 19:36:26 -03:00
2026_01_14_231040_create_accounts_table.php feat: redesign billing, onboarding, sidebar, and settings architecture 2026-04-15 00:33:38 -03:00
2026_01_14_232315_create_workspaces_table.php feat: replace legacy AI assistant with modular post content generation, review, and template management system 2026-05-03 09:36:50 -03:00
2026_01_14_232317_create_subscriptions_table.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
2026_01_14_232318_create_subscription_items_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_232319_create_user_workspace_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_232320_create_social_accounts_table.php feat: implement paginated social accounts table with search functionality and updated UI components 2026-05-02 14:15:41 -03:00
2026_01_14_232321_create_posts_table.php Change media column to nullable with default null 2026-05-19 08:19:40 +02:00
2026_01_14_232322_create_post_platforms_table.php feat: add PostCommentCreated broadcast event 2026-04-15 20:11:36 -03:00
2026_01_14_232323_create_medias_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_233835_create_workspace_invites_table.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
2026_01_17_152319_create_workspace_signatures_table.php chore: remove deprecated localization files 2026-05-03 15:23:25 -03:00
2026_01_17_153347_create_workspace_labels_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_01_26_173538_create_post_workspace_label_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_29_233024_create_telescope_entries_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_30_024008_replace_language_id_with_locale_on_users.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_30_115716_drop_locale_from_users.php refactor: auth split layout, subscribe redesign, onboarding, i18n, cookie locale 2026-03-30 11:53:42 -03:00
2026_03_30_120000_add_indexes_to_post_platforms.php feat: PostPlatform enum, failure email, DB indexes, rate limiting, tests 2026-03-30 16:11:38 -03:00
2026_03_30_191151_create_notifications_table.php feat: add PostCommentCreated broadcast event 2026-04-15 20:11:36 -03:00
2026_03_30_202513_create_notification_preferences_table.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
2026_03_30_215118_add_is_active_to_social_accounts.php chore: posthog, ui, features and more 2026-03-30 21:18:07 -03:00
2026_04_15_000001_create_post_comments_table.php Change reactions column to nullable with default null 2026-05-19 08:28:07 +02:00
2026_04_15_000003_create_workspace_ai_usages_table.php feat: transition AI usage from feature-based limits to a centralized monthly credit system with token tracking. 2026-05-03 19:36:26 -03:00
2026_05_03_210117_create_oauth_auth_codes_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210118_create_oauth_access_tokens_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210119_create_oauth_refresh_tokens_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210120_create_oauth_clients_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210121_create_oauth_device_codes_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_04_212145_add_utm_columns_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_04_212935_add_github_id_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_04_212935_add_registration_ip_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_07_231552_add_image_style_to_workspaces_table.php feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
2026_05_15_190137_add_upload_token_to_media_table.php style(media): add void return on migration closures, drop noop ->after 2026-05-15 16:06:54 -03:00
2026_05_22_211640_create_automations_table.php Tidy automation backend: run duration, folded migrations, imports 2026-06-13 16:30:32 -03:00
2026_05_22_211641_create_automation_trigger_items_table.php Add strict_types to automation files and AutomationNodeState factory 2026-06-10 17:26:50 -03:00
2026_05_22_211642_create_automation_runs_table.php Tidy automation backend: run duration, folded migrations, imports 2026-06-13 16:30:32 -03:00
2026_05_22_211643_create_automation_node_runs_table.php Add strict_types to automation files and AutomationNodeState factory 2026-06-10 17:26:50 -03:00
2026_05_23_164734_create_automation_node_states_table.php Add strict_types to automation files and AutomationNodeState factory 2026-06-10 17:26:50 -03:00
2026_06_12_155847_replace_brand_voice_notes_with_traits_on_workspaces.php Structure brand voice and make generated copy platform-aware 2026-06-12 17:09:39 -03:00
2026_06_21_184042_drop_limit_columns_from_plans_table.php refactor: address code review for per-workspace pricing 2026-06-21 21:28:47 -03:00
2026_06_21_194741_add_persona_to_users_table.php refactor: address code review for per-workspace pricing 2026-06-21 21:28:47 -03:00
2026_06_22_162523_drop_features_table.php chore: remove unused Pennant package and dead user-timezone handling 2026-06-22 13:37:38 -03:00
2026_06_24_220651_collapse_linkedin_content_types.php refactor(linkedin): infer post format from media + unify account connection 2026-06-24 21:05:09 -03:00
2026_06_25_232554_add_goals_to_users_table.php feat(onboarding): add goal step after persona 2026-06-25 20:49:04 -03:00
2026_07_18_184130_add_referral_source_to_users_table.php feat(onboarding): add "where you found us" referral-source step 2026-07-18 16:07:11 -03:00
2026_07_24_141454_add_created_via_to_posts_table.php chore: added strict types 2026-07-24 11:22:28 -03:00
2026_07_24_160704_add_onboarding_timestamps_to_accounts_table.php Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
2026_07_29_183500_backfill_onboarding_dismissed_for_accounts_with_app_access.php Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
2026_08_06_144847_add_workspace_id_to_oauth_auth_codes_table.php Scope MCP OAuth tokens to user + workspace (#222) (#245) 2026-08-06 21:59:34 -03:00
2026_08_06_144848_backfill_mcp_oauth_token_workspaces.php Scope MCP OAuth tokens to user + workspace (#222) (#245) 2026-08-06 21:59:34 -03:00
2026_08_08_090000_add_connection_warning_sent_at_to_post_platforms_table.php feat: proactive connection check for at-risk posts + SocialAccount name centralization (#256) 2026-08-09 11:10:39 -03:00
2026_08_08_204549_add_last_verified_at_to_social_accounts_table.php feat: proactive connection check for at-risk posts + SocialAccount name centralization (#256) 2026-08-09 11:10:39 -03:00
2026_08_11_171700_add_click_id_columns_to_users_table.php feat: capture ad click IDs for ad-platform conversion attribution (#276) 2026-08-11 15:07:23 -03:00
2026_08_21_130941_add_workspace_platform_identity_unique_to_social_accounts_table.php Make the test suite pass on MySQL (#307) 2026-08-29 11:05:33 -03:00
2026_09_03_190941_create_webhooks_table.php Add workspace webhooks and drop the unused automation webhook node (#326) 2026-09-04 09:43:29 -03:00
2026_09_03_190942_create_webhook_logs_table.php Add workspace webhooks and drop the unused automation webhook node (#326) 2026-09-04 09:43:29 -03:00