Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(workflows): drop hogflowbatchjob.scheduled_at column (#57260)

Daniel Marchuk5e22179e076a
diff --git a/products/workflows/backend/migrations/0006_drop_hogflowbatchjob_scheduled_at_column.py b/products/workflows/backend/migrations/0006_drop_hogflowbatchjob_scheduled_at_column.py
new file mode 100644
index 000000000000..c7bd665fe0d1
--- /dev/null
+++ b/products/workflows/backend/migrations/0006_drop_hogflowbatchjob_scheduled_at_column.py
@@ -0,0 +1,19 @@
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("workflows", "0005_remove_hogflowbatchjob_scheduled_at"),
+ ]
+
+ operations = [
+ migrations.SeparateDatabaseAndState(
+ state_operations=[],
+ database_operations=[
+ migrations.RunSQL(
+ sql='ALTER TABLE "workflows_hogflowbatchjob" DROP COLUMN IF EXISTS "scheduled_at"',
+ reverse_sql='ALTER TABLE "workflows_hogflowbatchjob" ADD COLUMN "scheduled_at" timestamptz NULL',
+ ),
+ ],
+ ),
+ ]
diff --git a/products/workflows/backend/migrations/max_migration.txt b/products/workflows/backend/migrations/max_migration.txt
index a083d3c9464b..bf0033979825 100644
--- a/products/workflows/backend/migrations/max_migration.txt
+++ b/products/workflows/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0005_remove_hogflowbatchjob_scheduled_at
+0006_drop_hogflowbatchjob_scheduled_at_column