59 lines
803 B
JavaScript
59 lines
803 B
JavaScript
exports.seed = function (knex) {
|
|
return knex('cities')
|
|
.truncate()
|
|
.then(function () {
|
|
return knex('cities').insert([
|
|
{
|
|
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,
|
|
},
|
|
]);
|
|
});
|
|
};
|