From e51d35df44e87a63d4a3178205ecd534e3604b41 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 13 Apr 2022 15:29:16 -0400 Subject: [PATCH] Add bash helper script for creating migrations I keep losing the commands so... deal with it! --- .idea/.idea.ProjectLighthouse/.idea/indexLayout.xml | 1 + create-migration.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 create-migration.sh diff --git a/.idea/.idea.ProjectLighthouse/.idea/indexLayout.xml b/.idea/.idea.ProjectLighthouse/.idea/indexLayout.xml index c41892bf..022ac2e7 100644 --- a/.idea/.idea.ProjectLighthouse/.idea/indexLayout.xml +++ b/.idea/.idea.ProjectLighthouse/.idea/indexLayout.xml @@ -11,6 +11,7 @@ ProjectLighthouse.sln.DotSettings ProjectLighthouse.sln.DotSettings.user README.md + create-migration.sh docker-compose.yml global.json diff --git a/create-migration.sh b/create-migration.sh new file mode 100755 index 00000000..5ccbe0fb --- /dev/null +++ b/create-migration.sh @@ -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 \ No newline at end of file