dijkstra-backend/data/seeds/02-cities.js

59 lines
803 B
JavaScript
Raw Normal View History

2020-10-12 09:22:32 +00:00
exports.seed = function (knex) {
return knex('cities')
.truncate()
2020-02-07 16:55:43 +00:00
.then(function () {
return knex('cities').insert([
2020-10-12 09:22:32 +00:00
{
id: 1,
name: 'bruges',
country_id: 1,
},
{
id: 2,
name: 'antwerp',
country_id: 1,
},
{
id: 3,
name: 'ghent',
country_id: 1,
},
{
id: 4,
name: 'mechelen',
country_id: 1,
},
{
id: 5,
name: 'brussels',
country_id: 1,
},
{
id: 6,
name: 'mons',
country_id: 1,
},
{
id: 7,
name: 'namur',
country_id: 1,
},
{
id: 8,
name: 'liege',
country_id: 1,
},
{
id: 9,
name: 'arlon',
country_id: 1,
},
{
id: 10,
name: 'tournai',
country_id: 1,
},
2020-02-07 16:55:43 +00:00
]);
2020-10-12 09:22:32 +00:00
});
2020-02-07 16:55:43 +00:00
};