Marcos Sampaio
01/12/2022, 4:56 AMSam Hulick
01/12/2022, 5:04 AMdb
folder that has migrations & seeds in itMarcos Sampaio
01/12/2022, 5:49 AMMarcos Sampaio
01/12/2022, 5:50 AMthdxr
01/12/2022, 2:09 PMthdxr
01/12/2022, 2:09 PMkysely
and running migrations through sst.Script
Sam Hulick
01/12/2022, 2:10 PMSam Hulick
01/12/2022, 3:18 PM├── knex-get-secrets.js
├── knex-util.js
├── knexfile.js
├── migrations
│ ├── 005_create_functions.js
│ ├── 010_create_types.js
│ ├── 020_create_users.js
│ └── ...etc...
└── seeds
├── 10_themes.js
├── 20_plans.js
├── 30_features.js
└── 40_groups.js
I’ve got a couple of scripts in package.json
"db:migrate": "knex --knexfile db/knexfile.js migrate:latest",
"db:seed": "knex --knexfile db/knexfile.js seed:run",
that’s really about it!Sam Hulick
01/12/2022, 3:18 PMSam Hulick
01/12/2022, 3:18 PMyarn knex migrate:make whatever
and then yarn db:migrate
Marcos Sampaio
01/12/2022, 10:00 PMthdxr
01/13/2022, 2:01 PMthdxr
01/13/2022, 2:02 PMthdxr
01/13/2022, 2:07 PMMarcos Sampaio
01/13/2022, 8:59 PM