Add bash helper script for creating migrations

I keep losing the commands so... deal with it!
This commit is contained in:
jvyden 2022-04-13 15:29:16 -04:00
parent 45b6ba3f05
commit e51d35df44
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 5 additions and 0 deletions

4
create-migration.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
export LIGHTHOUSE_DB_CONNECTION_STRING='server=127.0.0.1;uid=root;pwd=lighthouse;database=lighthouse'
dotnet ef migrations add "$1" --project ProjectLighthouse