T-57: M1.3b — trial_ledger + vault_evaluations append-only PostgreSQL migration (research track)

This commit is contained in:
Studio 2026-11-27 16:45:16 -05:00 • committed by Boki
parent 2ea7316af6
commit 5025286e49
8 changed files with 920 additions and 11 deletions

View file

@ -274,11 +274,12 @@ describe('34-security-master.sql track registration', () => {
expect(await runPostgresMigrations(postgres as never)).toEqual(research);
});
test('all track runs 34-security-master.sql and 35-security-master-exchange-seed.sql last, after research 09-33, and skips 06-08', async () => {
test('all track runs 33, 34, 35, 36 last in exact order and skips 06-08', async () => {
const all = await filesForTrack('all');
expect(all.at(-2)).toBe('34-security-master.sql');
expect(all.at(-1)).toBe('35-security-master-exchange-seed.sql');
expect(all.indexOf('33-candidate-decimal-normalization.sql')).toBe(all.length - 3);
expect(all.at(-4)).toBe('33-candidate-decimal-normalization.sql');
expect(all.at(-3)).toBe('34-security-master.sql');
expect(all.at(-2)).toBe('35-security-master-exchange-seed.sql');
expect(all.at(-1)).toBe('36-trial-ledger.sql');
for (const bootstrap of [
'06-create-backtest-tables.sql',
'07-fix-execution-time-type.sql',