2020-02-07 16:55:43 +00:00
|
|
|
|
|
|
|
exports.seed = function(knex) {
|
|
|
|
return knex('cities').truncate()
|
|
|
|
.then(function () {
|
|
|
|
return knex('cities').insert([
|
2020-02-08 19:50:22 +00:00
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"name": 'bruges',
|
|
|
|
"country_id": 1
|
2020-02-07 16:55:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
|
},
|
|
|
|
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
};
|