gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitec54fc35ec54fc35Move show page logic into the shows topicmreec54fc35/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

  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre
  • 5827eba9log: HM57 merged, HM59 startedmre
  • d1a91be9Merge hm57-let: tracker#57 let only for reassigned namesmre
  • a404ed75Report HM57 audit, gates and integration notesmre
  • 1dcb87a7Use plain declarations for unchanged bindingsmre
  • b90395e3log: HM51 mergedmre
  • 9888d076Merge hm51-classes: tracker#51 views use Style referencesmre
  • 4399bc2fReference remaining component-owned root Style rulesmre
  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre
  • aed12917Reference owned Style rules in genres and searchmre
  • 14195720log: HM49B done, HM51 startedmre
  • 78ee6b56Move remaining component styles into Style blocksmre
  • 7f04de33log: HM49Bmre
  • 00616cf3log: #49 batch merged, DP67 startedmre
  • d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
  • 079f376dMove seven components' styles into Style blocksmre
  • 17d66feelog: #58 mergedmre
  • 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre