-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed update/delete/findby to username
- Loading branch information
1 parent
9cefd1b
commit e5368d3
Showing
10 changed files
with
108 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
exports.seed = function(knex) { | ||
// Deletes ALL existing entries | ||
return knex("Cities") | ||
.del() | ||
.then(function() { | ||
// Inserts seed entries | ||
return knex("Cities").insert([ | ||
{ id: 1, City: "Kampala" }, | ||
{ id: 2, City: "Gulu" }, | ||
{ id: 3, City: "Lira" }, | ||
{ id: 4, City: "Mbarara" }, | ||
{ id: 5, City: "Jinja" }, | ||
{ id: 6, City: "Bwizibwera" }, | ||
{ id: 7, City: "Mbale" }, | ||
{ id: 8, City: "Mukono" }, | ||
{ id: 9, City: "Kasese" }, | ||
{ id: 10, City: "Masaka" } | ||
]); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ exports.seed = function(knex) { | |
Shift: "PM", | ||
Price: "50", | ||
Email: "[email protected]", | ||
City: "Kampala" | ||
City_ID: 1 | ||
}, | ||
{ | ||
FullName: "Martha Stewart", | ||
|
@@ -27,7 +27,7 @@ exports.seed = function(knex) { | |
Shift: "AM", | ||
Price: "35", | ||
Email: "[email protected]", | ||
City: "Kampala" | ||
City_ID: 1 | ||
}, | ||
{ | ||
FullName: "Dan Abramov", | ||
|
@@ -39,7 +39,7 @@ exports.seed = function(knex) { | |
Shift: "AM", | ||
Price: "42", | ||
Email: "[email protected]", | ||
City: "Jinja" | ||
City_ID: 2 | ||
} | ||
]); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ exports.seed = function(knex) { | |
DueDate: "6/12/2020", | ||
Email: "[email protected]", | ||
Address: "123 Kampala Street", | ||
City: "Kampala" | ||
City_ID: 1 | ||
}, | ||
{ | ||
FullName: "Rihanna", | ||
|
@@ -25,7 +25,7 @@ exports.seed = function(knex) { | |
DueDate: "6/12/2020", | ||
Email: "[email protected]", | ||
Address: "345 Jinja Street", | ||
City: "Jinja" | ||
City_ID: 1 | ||
}, | ||
{ | ||
FullName: "Mary Michaels", | ||
|
@@ -36,7 +36,7 @@ exports.seed = function(knex) { | |
DueDate: "6/12/2020", | ||
Email: "[email protected]", | ||
Address: "123 Gulu Ave", | ||
City: "Gulu" | ||
City_ID: 2 | ||
} | ||
]); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.