Add support for migrations that need the database context

This commit is contained in:
jvyden 2022-06-10 02:21:01 -04:00
parent 6d0673fcb8
commit 64f65ba574
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
15 changed files with 656 additions and 481 deletions

View file

@ -1,4 +1,9 @@
#!/bin/bash
# Developer script to create EntityFramework database migrations
#
# $1: Name of the migration, e.g. SwitchToPermissionLevels
# Invoked manually
export LIGHTHOUSE_DB_CONNECTION_STRING='server=127.0.0.1;uid=root;pwd=lighthouse;database=lighthouse'
dotnet ef migrations add "$1" --project ProjectLighthouse