Skip to content

Commit 4c78ffd

Browse files
committed
Reset data
1 parent 1e4a62f commit 4c78ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reset-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const db = require('./services/db');
22

33
(async () => {
4-
await db.query(`TRUNCATE quote`);
4+
await db.query(`TRUNCATE quote RESTART IDENTITY`);
55
await db.query(`INSERT INTO quote (id, quote, author) VALUES
66
(1, 'There are only two kinds of languages: the ones people complain about and the ones nobody uses.', 'Bjarne Stroustrup'),
77
(2, 'Any fool can write code that a computer can understand. Good programmers write code that humans can understand.', 'Martin Fowler'),

0 commit comments

Comments
 (0)