Skip to content

Commit

Permalink
fixed typo in projects seed file, ran seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicemma committed Apr 17, 2020
1 parent 50127fd commit 9aba5a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Binary file modified data/projects.db3
Binary file not shown.
2 changes: 1 addition & 1 deletion data/seeds/01-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exports.seed = function(knex) {
return knex('projects').truncate()
.then(function () {
// Inserts seed entries
return knex('table_name').insert([
return knex('projects').insert([
{projects_name: 'Complete this project', projects_description: 'Make this project completed as proof it works', projects_completed: true},
{projects_name: 'aaaaaaaaaa', projects_description: 'wasddfdsgf', projects_completed: false},
{projects_name: 'jjjj', projects_description: 'aaaaaaaaadafdsgdsg', projects_completed: false},
Expand Down
2 changes: 0 additions & 2 deletions data/seeds/02-tasks.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('tasks').truncate()
.then(function () {
// Inserts seed entries
return knex('tasks').insert([
{tasks_description: 'eeee', notes: 'aaaaa', tasks_completed: true, project_id: 1},
{tasks_description: 'ffff', notes: 'uuuuuu', tasks_completed: false, project_id: 2},
Expand Down
14 changes: 7 additions & 7 deletions data/seeds/03-resources.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('table_name').del()
return knex('resources').truncate()
.then(function () {
// Inserts seed entries
return knex('table_name').insert([
{id: 1, colName: 'rowValue1'},
{id: 2, colName: 'rowValue2'},
{id: 3, colName: 'rowValue3'}
return knex('resources').insert([
{resources_name: 'eiou', resources_description: 'zzzzz', project_id: 1},
{resources_name: 'afdf', resources_description: 'rrrrrr', project_id: 2},
{resources_name: 'hhghgh', resources_description: 'eeeee', project_id: 3},
{resources_name: 'erere', resources_description: 'ggggg', project_id: 4},
{resources_name: 'qwqwq', resources_description: 'zzzz', project_id: 5},
]);
});
};

0 comments on commit 9aba5a9

Please sign in to comment.