Title: chore(db): drop orphaned import_* columns from user_table_definitions by waleedlatif1 · Pull Request #7188 · simstudioai/sim · GitHub
Open Graph Title: chore(db): drop orphaned import_* columns from user_table_definitions by waleedlatif1 · Pull Request #7188 · simstudioai/sim
X Title: chore(db): drop orphaned import_* columns from user_table_definitions by waleedlatif1 · Pull Request #7188 · simstudioai/sim
Description: Summary Drops the five orphaned import_* columns from user_table_definitions — import_status, import_id, import_error, import_rows_processed, import_started_at This is the contract phase of the table-jobs cutover. Migration 0233 moved import job state into table_jobs and removed every application read and write, but deliberately left the columns in place so the then-deployed app version kept working across blue/green cutover. The follow-up drop was never written, and no contract-pending marker was left to track it The columns have been invisible to Drizzle ever since: the model lost them in the same release, so every meta snapshot from 0233 onward already omits them and drizzle-kit generate reports no diff. They exist only physically, which is why this is a custom migration schema.ts is intentionally untouched — it has been correct since the cutover; only the database was stale Type of Change Chore / cleanup Testing Verified zero references to any of the five column names (snake_case or camelCase) anywhere outside packages/db/migrations Confirmed all five columns are empty across every row in production, and that nothing depends on them — no index, constraint, view, rule, trigger, function, publication, or generated column Diffed every table's column count against the Drizzle snapshot: user_table_definitions is the only table with model/database drift Idempotency tested against a scratch Postgres — ran the migration three times, clean each run, row data intact. Single ALTER with DROP COLUMN IF EXISTS clauses, so one lock acquisition and a no-op replay after a lock_timeout retry bun run check:migrations origin/staging ✓, bun run lint ✓, bun run check:audits (37 audits) ✓ Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary Drops the five orphaned import_* columns from user_table_definitions — import_status, import_id, import_error, import_rows_processed, import_started_at This is the contract phase of the ta...
X Description: Summary Drops the five orphaned import_* columns from user_table_definitions — import_status, import_id, import_error, import_rows_processed, import_started_at This is the contract phase of the ta...
Opengraph URL: https://github.com/simstudioai/sim/pull/7188
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5024be16-5d67-b16d-8a49-0ca78cbd5f99 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E19A:1F76:4B13DB:671E9C:6AFB67B4 |
| html-safe-nonce | bd564249593a31facd8d754fd18526a4b1fe9f6ddfa8bc16be275d5849b5cb68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTlBOjFGNzY6NEIxM0RCOjY3MUU5Qzo2QUZCNjdCNCIsInZpc2l0b3JfaWQiOiIyODUzODIzNjc2MjU4NDEyNDY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 89a08243b169b22e3427a4782406db55f04c0b9f5cf27d1f7c8b2f08d0179465 |
| hovercard-subject-tag | pull_request:4380912875 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7188/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Drops the five orphaned import_* columns from user_table_definitions — import_status, import_id, import_error, import_rows_processed, import_started_at This is the contract phase of the ta... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width