Skip to content

Commit a236f48

Browse files
AllesandriaAllesandria
authored andcommitted
double check of PROJECT table setup
1 parent bf70aa1 commit a236f48

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

data/migrations/20220819053947_projects_table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
//PROJECTS TABLE
22
exports.up = function (knex) {
33
return knex.schema.createTable('projects', tbl => {
44
tbl.increments('project_id');
@@ -11,7 +11,7 @@ exports.up = function (knex) {
1111

1212

1313
exports.down = function (knex) {
14-
return knex.schema.dropTableIfExists('projects')
14+
return knex.schema.dropTableIfExists('projects');
1515

1616

1717

data/migrations/20220820054510_project_resources_table.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ exports.down = function (knex) {
2323

2424
};
2525

26-
26+
// Figure out the migration order of tables
27+
//determine what seeds are going to be for each table with constraints
28+
//Take assessment test when finished with Sprint 2 Challenge
29+
//hackerrank, leetcode and hackathon

data/migrations/20220820055419_merge_table.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
1+
//RESOURCE ASSIGNMENT TABLE
22
exports.up = function (knex) {
3-
return knex.schema.createTable('project_resources', tbl => {
3+
return knex.schema.createTable(`project_resources`, tbl => {
44
tbl.integer('project_id')
55
.references('project_id')
66
.inTable('projects')
@@ -20,5 +20,5 @@ exports.up = function (knex) {
2020

2121

2222
exports.down = function (knex) {
23-
return knex.schema.dropTableIfExists('project_resources')
23+
return knex.schema.dropTableIfExists(`project_resources`)
2424
};

0 commit comments

Comments
 (0)