We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4a62f commit 4c78ffdCopy full SHA for 4c78ffd
reset-data.js
@@ -1,7 +1,7 @@
1
const db = require('./services/db');
2
3
(async () => {
4
- await db.query(`TRUNCATE quote`);
+ await db.query(`TRUNCATE quote RESTART IDENTITY`);
5
await db.query(`INSERT INTO quote (id, quote, author) VALUES
6
(1, 'There are only two kinds of languages: the ones people complain about and the ones nobody uses.', 'Bjarne Stroustrup'),
7
(2, 'Any fool can write code that a computer can understand. Good programmers write code that humans can understand.', 'Martin Fowler'),
0 commit comments