gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit03bbfba303bbfba3Log: AP56c causemre03bbfba3/tools/hm62-migration-repro.hl

874 B

  1. // HM62 minimal index migration and rollback/redeploy reproduction.
  2. import { MPackDB } from 'hl:mpackdb'
  3. import { env } from 'hl:proc'
  4. phase = env('HM62_PHASE')
  5. db = new MPackDB(file = env('HM62_DB'), primaryKey = '@id', indexes = phase == 'build' || phase == 'verify' ? ['!oldId', 'urlSegment', 'tmdbId'] : ['!oldId'], compact = false)
  6. if (phase == 'seed') { db.put({ id = 'first' oldId = 'first' urlSegment = 'First' tmdbId = 1 }) }
  7. if (phase == 'oldwrite') { db.put({ id = 'second' oldId = 'second' urlSegment = 'Second' tmdbId = 2 }) }
  8. if (phase == 'build') { console.log('build first=' + db.find('urlSegment', 'First').length) }
  9. if (phase == 'verify') {
  10. console.log('verify pk=' + (db.fetch('second') != null))
  11. console.log('verify slug=' + db.find('urlSegment', 'Second').length)
  12. console.log('verify tmdb=' + db.find('tmdbId', '2').length)
  13. }
  14. db.persist()
  15. db.close()

Branches

Latest commits

  • 03bbfba3Log: AP56c causemre
  • 24845fe3Log: AP56b result, AP56cmre
  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre