Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // File: seeds/dev/operating_systems.js
- 'use strict';
- exports.seed = function( knex, Promise ) {
- let table = 'operating_systems';
- return Promise.join(
- // Removing the deletion, to avoid constraint errors
- // (until we can get the insert working)
- //knex( table ).del(),
- knex.insert([
- { created_at: knex.fn.now(), type: 'linux', flavor: 'Ubuntu', release: '7.10', code_name: 'gutsy', description: 'Ubuntu 7.10' },
- { created_at: knex.fn.now(), type: 'linux', flavor: 'CentOS', release: '6.7', code_name: null, description: 'CentOS release 6.7 (Final)' },
- { created_at: knex.fn.now(), type: 'linux', flavor: 'RedHat', release: '6', code_name: null, description: 'RedHat Enterprise Linux 6' },
- { created_at: knex.fn.now(), type: 'microsoft', flavor: '2008', release: 'r2', code_name: null, description: 'Windows Server 2008 r2' }
- ]).into( table )
- );
- };
Advertisement
Add Comment
Please, Sign In to add comment