Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit e8bddc0

Browse files
manually fix pg line
1 parent 0c98b5c commit e8bddc0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

v3-mongodb-v3-sql/dialects/postgres.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ module.exports = (knex, inspector) => ({
2323
const max = result.rows[0].max;
2424

2525
if (max) {
26-
await knex.raw(
27-
`
28-
ALTER SEQUENCE ?? RESTART WITH ??;
29-
`,
30-
[table + '_id_seq', max + 1]
31-
);
26+
await knex.raw(`ALTER SEQUENCE ?? RESTART WITH ??;`, [table + '_id_seq', max + 1]);
3227
}
3328
}
3429
},

0 commit comments

Comments
 (0)