갱신 행의 ID를 보존하고 예약턴의 불필요한 시퀀스를 제거한다

This commit is contained in:
Hide_D committed 2026-11-14 18:44:22 +09:00
1 parent bc54b157c1
commit 81e101ffef
43 files changed
+587 -113

No files matched your search

@@ -53,6 +53,11 @@ const readIndexes = async (table) =>
).rows;
try {
await fs.cp(path.join(packageRoot, 'prisma'), path.join(temp, 'prisma'), { recursive: true });
for (const name of await fs.readdir(path.join(temp, 'prisma', 'migrations'))) {
if (/^\d/.test(name) && name > targets.at(-1)) {
await fs.rm(path.join(temp, 'prisma', 'migrations', name), { recursive: true });
}
}
for (const target of targets) await fs.rm(path.join(temp, 'prisma', 'migrations', target), { recursive: true });
await fs.writeFile(
config,