Skip to content

Commit

Permalink
wip t4t
Browse files Browse the repository at this point in the history
  • Loading branch information
ais-one committed Nov 27, 2024
1 parent 38329bd commit a4379d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tools/dbdeploy/dbs/express-template-db/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
npx knex --knexfile dbs/express-template-db/knexfile.js migrate:up
npx knex --knexfile dbs/express-template-db/knexfile.js migrate:up
npx knex --knexfile dbs/express-template-db/knexfile.js seed:run
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports.up = async function(knex) {
table.string('country')
table.string('state')
table.datetime('dateTimeTz')
table.string('website')
table.string('secret')
table.string('remarks')
table.string('updated_by')
table.datetime('updated_at')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports.seed = async function(knex) {
country: 'SG',
state: '',
dateTimeTz: (new Date()).toISOString(), // sqlite stores as integer...
website: '',
secret: '1234',
remarks: '',
updated_by: 'someone',
updated_at: (new Date()).toISOString()
Expand Down

0 comments on commit a4379d2

Please sign in to comment.