v0.1.29
This commit is contained in:
parent
5379d29c5f
commit
e8d5d50ae5
2 changed files with 1 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>0.1.28</Version>
|
<Version>0.1.29</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
|
|
||||||
# Check if connection string is provided
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
echo "Usage: $0 <connection-string>"
|
|
||||||
echo "Example: $0 'Host=localhost;Database=mydb;Username=user;Password=pass'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the connection string from the first argument
|
|
||||||
CONNECTION_STRING="$1"
|
|
||||||
|
|
||||||
# Get the directory where this script is located
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
|
|
||||||
# Navigate to the parent directory (assuming migrator is built there)
|
|
||||||
cd "$SCRIPT_DIR/.."
|
|
||||||
|
|
||||||
# Run the migrator with the 'up' command and provided connection string
|
|
||||||
dotnet run --project . -- up --connection-string "$CONNECTION_STRING"
|
|
Loading…
Add table
Add a link
Reference in a new issue