17 lines
410 B
Plaintext
Raw Normal View History

/**
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('table_name').del()
.then(function () {
// Inserts seed entries
return knex('table_name').insert([
{id: 1, colName: 'rowValue1'},
{id: 2, colName: 'rowValue2'},
{id: 3, colName: 'rowValue3'}
2016-06-13 20:51:56 -06:00
]);
});
2015-05-09 13:58:18 -04:00
};