mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-17 07:12:32 +00:00
Add support for migrations that need the database context
This commit is contained in:
parent
6d0673fcb8
commit
64f65ba574
15 changed files with 656 additions and 481 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue