mirror of
https://github.com/knex/knex.git
synced 2025-07-03 07:04:07 +00:00
14 lines
332 B
Plaintext
14 lines
332 B
Plaintext
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.seed = async function(knex) {
|
|
// Deletes ALL existing entries
|
|
await knex('table_name').del()
|
|
await knex('table_name').insert([
|
|
{id: 1, colName: 'rowValue1'},
|
|
{id: 2, colName: 'rowValue2'},
|
|
{id: 3, colName: 'rowValue3'}
|
|
]);
|
|
};
|