@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 263f12a
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 22:00 UTC

ci(stage1): allow explicitly scoped new role governance migration in offline preflight

davoodmehraban89 committed Oct 17, 2026 at 10:14 UTC 263f12adf828a936491fe73ec494920f5be2b545
1 file changed +1 -1
scripts/phase1a-migration-preflight.mjs
+1 -1
@@ -19,7 +19,7 @@ const approvedRemote=historic.split('## Production history entries absent from t
19 const approvedLocal=historic.split('## Tracked repo files absent by exact filename')[1].split('**Required before migration:**')[0];
20 const allowProd=new Set([...approvedRemote.matchAll(/\x60([0-9]{14})_[^\x60]+\.sql\x60/g)].map(m=>m[1]));
21 const allowLocal=new Set([...approvedLocal.matchAll(/\x60([0-9]{14})_[^\x60]+\.sql\x60/g)].map(m=>m[1]));
22 -for(const v of ['20261007170000','20261016100000','20261016100500','20261016101000','20261016101500','20261016102000'])allowLocal.add(v);
22 +for(const v of ['20261007170000','20261016100000','20261016100500','20261016101000','20261016101500','20261016102000','20261016102500'])allowLocal.add(v);
23 const unexpectedProd=onlyProd.filter(x=>!allowProd.has(x.version));
24 const unexpectedLocal=onlyRepo.filter(x=>!allowLocal.has(x.version));
25 const terminal=files.filter(x=>fs.readFileSync(path.join('supabase/migrations',x)).toString().endsWith('\\n'));