Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ais-one committed Nov 26, 2024
1 parent 3cd0eb9 commit 38329bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.693.0",
"@aws-sdk/client-s3": "^3.701.0",
"@google-cloud/storage": "^7.14.0",
"@node-saml/node-saml": "^5.0.0",
"ali-oss": "^6.21.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports.up = async function(knex) {
await knex.schema.createTable('subject', (table) => { // part of composite table
table.string('code').primary()
table.string('name')
table.string('passingGrade')
table.integer('passingGrade')
})
await knex.schema.createTable('student_subject', (table) => { // test multy-key table as well as composite table
table.integer('studentId').unsigned().references('student.id')
Expand Down
10 changes: 5 additions & 5 deletions tools/dbdeploy/dbs/express-template-db/seeds/initial_testdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ exports.seed = async function(knex) {
await knex('country').insert( require('./icc.json') )
await knex('state').insert( require('./state.json') )
await knex('subject').insert( [
{ code: 'EL1', name: 'English', passingGrade: 'D' },
{ code: 'EM', name: 'E Math', passingGrade: 'C' },
{ code: 'AM', name: 'A Math', passingGrade: 'C' },
{ code: 'PHY', name: 'Physics', passingGrade: 'D' },
{ code: 'CHEM', name: 'Chemistry', passingGrade: 'D' },
{ code: 'EL1', name: 'English', passingGrade: 40 },
{ code: 'EM', name: 'E Math', passingGrade: 41 },
{ code: 'AM', name: 'A Math', passingGrade: 42 },
{ code: 'PHY', name: 'Physics', passingGrade: 43 },
{ code: 'CHEM', name: 'Chemistry', passingGrade: 44 },
])
await knex('student_subject').insert( [ // studentId from insert above...
{ studentId: 1, subjectCode: 'EM', gradeFinal: 'A', gradeDate: '2024-10-01' },
Expand Down

0 comments on commit 38329bd

Please sign in to comment.