forked from Lan2Play/NetEvent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·16 lines (13 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# create migration usage make migration name=migrationnamehere
migration:
dotnet ef migrations add $(name) --project NetEvent/Server --context SqliteApplicationDbContext --output-dir Migrations/Sqlite
dotnet ef migrations add $(name) --project NetEvent/Server --context PsqlApplicationDbContext --output-dir Migrations/Psql -- --DBProvider psql
# create initial migrations | Attention: Do not use this until you know what you are doing!
force-initial-migration:
rm -rf NetEvent/Server/Migrations/Psql
rm -rf NetEvent/Server/Migrations/Sqlite
dotnet ef migrations add InitialCreate --project NetEvent/Server --context SqliteApplicationDbContext --output-dir Migrations/Sqlite
dotnet ef migrations add InitialCreate --project NetEvent/Server --context PsqlApplicationDbContext --output-dir Migrations/Psql -- --DBProvider psql
# Make Documentation
docs-html:
docker run --rm -v $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/Docs:/docs -e USERID=$(shell id -u ${USER}) -e GROUPID=$(shell id -g ${USER}) lan2play/docker-sphinxbuild:latest