mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 15:52:22 +01:00
Keep migration numbering append-only in sleep-16-seeded-decision-queues
Place the company review index before descendant migrations. Preserve all SQL bytes, update exact filename references, and regenerate snapshots in dependency order. Validate each PR against its corrected target branch. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
commit
12c836d77e
17 files changed
+14595
-14584
No files matched your search
@@ -107,12 +107,23 @@ The grouped startup inventory remains unchanged. Existing company signals,
|
||||
authority checks, expiry settlement, paging, backoff, and sleep gates remain
|
||||
owned by their existing services.
|
||||
|
||||
The generated additive migration reserves number 0402 because later PRs in this
|
||||
stack already own 0380 through 0401. It builds the new index concurrently and
|
||||
idempotently through the existing top-level migration executor. No old SQL
|
||||
migration is edited. Combined snapshots must be generated from each branch's
|
||||
merged schema, retaining the five newest snapshots, so the reserved later
|
||||
number cannot hide descendant schema changes from future generation.
|
||||
The additive company-expiry index is migration `0380_tool_review_company_expiry`.
|
||||
It builds the index concurrently and idempotently through the existing top-level
|
||||
migration executor. It was initially numbered 0402 to avoid existing allocations.
|
||||
That passed per-branch numbering and schema checks, but CI correctly rejected
|
||||
later PRs whose migrations then preceded their target branch's 0402. The fix
|
||||
renumbers this unmerged index migration to 0380 and shifts the stack's former
|
||||
0380 through 0401 migrations forward by one, preserving their SQL bytes. It
|
||||
updates filename references, journal tags and indices, and generates snapshots
|
||||
in the corrected dependency order. The moved journal timestamp is placed after
|
||||
0379 and before the next migration; other timestamps remain unchanged.
|
||||
|
||||
Each PR must pass the exact target-branch migration-order gate, in addition to
|
||||
the existing numbering, safety, five-snapshot retention, and schema-drift checks.
|
||||
Local branch checks alone did not establish the stack's append-only ordering.
|
||||
Fresh application, upgrades from the previous numbered task databases, and
|
||||
replay also require verification. These unmerged stack migrations have not
|
||||
changed the SQL of migrations already on master.
|
||||
|
||||
Two failures shaped the repair. The first migration attempt omitted its explicit
|
||||
top-level registration and PostgreSQL rejected the concurrent build inside a
|
||||
|
||||
@@ -503,15 +503,15 @@ const MIGRATIONS_WITH_TOP_LEVEL_STATEMENTS = new Set([
|
||||
"0369_late_logan.sql",
|
||||
"0378_mean_scream.sql",
|
||||
"0379_narrow_the_executioner.sql",
|
||||
"0381_open_madame_web.sql",
|
||||
"0382_chemical_madame_web.sql",
|
||||
"0383_clever_chamber.sql",
|
||||
"0384_many_reaper.sql",
|
||||
"0385_normal_blindfold.sql",
|
||||
"0386_omniscient_luke_cage.sql",
|
||||
"0387_huge_skrulls.sql",
|
||||
"0380_funny_adam_warlock.sql",
|
||||
"0402_tool_review_company_expiry.sql",
|
||||
"0382_open_madame_web.sql",
|
||||
"0383_chemical_madame_web.sql",
|
||||
"0384_clever_chamber.sql",
|
||||
"0385_many_reaper.sql",
|
||||
"0386_normal_blindfold.sql",
|
||||
"0387_omniscient_luke_cage.sql",
|
||||
"0388_huge_skrulls.sql",
|
||||
"0381_funny_adam_warlock.sql",
|
||||
"0380_tool_review_company_expiry.sql",
|
||||
]);
|
||||
|
||||
async function applyPendingMigrationsManually(
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3637
-3637
File diff suppressed because it is too large.
Load diff
+3637
-3637
File diff suppressed because it is too large.
Load diff
+3637
-3637
File diff suppressed because it is too large.
Load diff
+3637
-3637
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -64232,6 +64232,6 @@
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"id": "e5fea998-8290-482d-b9cc-3dc291ab9221",
|
||||
"prevId": "4c86af49-02a0-496f-b028-b468d9e4e960"
|
||||
"id": "4907ef38-1b97-48bb-a381-9f5a101c0841",
|
||||
"prevId": "505bde78-5d36-407a-ba78-c6285359c3fc"
|
||||
}
|
||||
+19
-19
@@ -2651,64 +2651,64 @@
|
||||
{
|
||||
"idx": 380,
|
||||
"version": "7",
|
||||
"when": 1792863024087,
|
||||
"tag": "0380_funny_adam_warlock",
|
||||
"when": 1792861791950,
|
||||
"tag": "0380_tool_review_company_expiry",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 381,
|
||||
"version": "7",
|
||||
"when": 1792863626931,
|
||||
"tag": "0381_open_madame_web",
|
||||
"when": 1792863024087,
|
||||
"tag": "0381_funny_adam_warlock",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 382,
|
||||
"version": "7",
|
||||
"when": 1792871748836,
|
||||
"tag": "0382_chemical_madame_web",
|
||||
"when": 1792863626931,
|
||||
"tag": "0382_open_madame_web",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 383,
|
||||
"version": "7",
|
||||
"when": 1792872323806,
|
||||
"tag": "0383_clever_chamber",
|
||||
"when": 1792871748836,
|
||||
"tag": "0383_chemical_madame_web",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 384,
|
||||
"version": "7",
|
||||
"when": 1792873408795,
|
||||
"tag": "0384_many_reaper",
|
||||
"when": 1792872323806,
|
||||
"tag": "0384_clever_chamber",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 385,
|
||||
"version": "7",
|
||||
"when": 1792875344101,
|
||||
"tag": "0385_normal_blindfold",
|
||||
"when": 1792873408795,
|
||||
"tag": "0385_many_reaper",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 386,
|
||||
"version": "7",
|
||||
"when": 1792877330859,
|
||||
"tag": "0386_omniscient_luke_cage",
|
||||
"when": 1792875344101,
|
||||
"tag": "0386_normal_blindfold",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 387,
|
||||
"version": "7",
|
||||
"when": 1792880971454,
|
||||
"tag": "0387_huge_skrulls",
|
||||
"when": 1792877330859,
|
||||
"tag": "0387_omniscient_luke_cage",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 402,
|
||||
"idx": 388,
|
||||
"version": "7",
|
||||
"when": 1793080350746,
|
||||
"tag": "0402_tool_review_company_expiry",
|
||||
"when": 1792880971454,
|
||||
"tag": "0388_huge_skrulls",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user