Skip to content

Commit 90f0caf

Browse files
committed
Keep production D1 migrations operator-scoped
1 parent 8aff701 commit 90f0caf

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

‎.github/workflows/deploy-production.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ jobs:
6767
unset ORBIT_LIVE_OAUTH_CLIENT_ID ORBIT_LIVE_OAUTH_CLIENT_SECRET
6868
6969
short_sha="${GITHUB_SHA::12}"
70-
npx wrangler d1 migrations apply DB \
71-
--remote \
72-
--config wrangler.production.live.jsonc
73-
7470
npx wrangler deploy \
7571
--config wrangler.production.live.jsonc \
7672
--secrets-file "$oauth_secrets_file" \

‎docs/V6_PROJECT_LEDGER.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ Bu dosya yalnız sonuçları değil; kararları, reddedilen alternatifleri, migr
383383
Post images remain separately disabled unless the platform owner enables the
384384
target agent's data-defined media policy; the 4,500 monthly transform safety
385385
ceiling remains enforced.
386-
- Production deployment now applies committed forward D1 migrations immediately
387-
before deploying the matching Worker, preventing schema/code drift during
388-
future releases.
386+
- Migration 0015 was applied to production through the authorized local
387+
Cloudflare operator session before the matching Worker release. The GitHub
388+
deploy token is intentionally Worker-scoped and cannot mutate D1, so future
389+
production schema migrations remain an explicit pre-deploy operator step.

‎scripts/orbit-production-config-tests.mjs‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,4 @@ assert(
218218
deployWorkflow.includes("trap 'rm -f \"$oauth_secrets_file\"' EXIT"),
219219
'production deploy does not clean up its temporary OAuth secrets file',
220220
);
221-
assert(
222-
deployWorkflow.includes('wrangler d1 migrations apply DB')
223-
&& deployWorkflow.indexOf('wrangler d1 migrations apply DB') < deployWorkflow.indexOf('wrangler deploy'),
224-
'production deploy must apply forward D1 migrations before the Worker version',
225-
);
226-
227221
process.stdout.write(`Orbit production config tests: ${assertions} assertions passed\n`);

0 commit comments

Comments
 (0)