node-go/server/data/seeds/02_timeSetting.js

11 lines
354 B
JavaScript
Raw Permalink Normal View History

exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('time_setting').del()
.then(function () {
// Inserts seed entries
return knex('time_setting').insert([
{id: 1, main_time: 'untimed', time_period: 1, period_length: 0, overtime: 'untimed', overtime_period: 0, overtime_length: 0},
]);
});
};