File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
"pretest:client" : " ./node_modules/typescript/bin/tsc -p ./client-react.test/" ,
11
11
"test:client" : " mocha --require ignore-styles --recursive client-react.test/build/client-react.test" ,
12
12
"test" : " npm run test:api && npm run test:client" ,
13
- "migrate" : " cd ./api/ && dotnet ef migrations add $(date +%s) && dotnet ef database update" ,
13
+ "migrate" : " cd ./api/ && node ../scripts/create-migration.js && dotnet ef database update" ,
14
14
"prestart" : " docker-compose up -d" ,
15
15
"start" : " cd ./api && cross-env NODE_PATH=../node_modules/ ASPNETCORE_ENVIRONMENT=Development dotnet watch run" ,
16
16
"start:release" : " npm run prerelease && cd ./api/bin/Release/netcoreapp1.0/publish/ && dotnet api.dll" ,
Original file line number Diff line number Diff line change
1
+ const timestamp = Math . floor ( new Date ( ) . getTime ( ) / 1000 ) . toString ( ) ;
2
+ const execSync = require ( "child_process" ) . execSync ;
3
+ execSync ( `dotnet ef migrations add ${ timestamp } ` ) ;
You can’t perform that action at this time.
0 commit comments