mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-23 15:41:26 +00:00
Add bash helper script for creating migrations
I keep losing the commands so... deal with it!
This commit is contained in:
parent
45b6ba3f05
commit
e51d35df44
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
<Path>ProjectLighthouse.sln.DotSettings</Path>
|
||||
<Path>ProjectLighthouse.sln.DotSettings.user</Path>
|
||||
<Path>README.md</Path>
|
||||
<Path>create-migration.sh</Path>
|
||||
<Path>docker-compose.yml</Path>
|
||||
<Path>global.json</Path>
|
||||
</explicitIncludes>
|
||||
|
|
4
create-migration.sh
Executable file
4
create-migration.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue