rename folders
This commit is contained in:
parent
41b834dd08
commit
31c1f36744
13
docker/docker-compose.yml
Normal file
13
docker/docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:16.4
|
||||||
|
container_name: gandalf_reborn_db
|
||||||
|
restart: always
|
||||||
|
shm_size: 128mb
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: root
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_DB: gandalf_reborn
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
|
||||||
3
scripts/add-migration.cmd
Normal file
3
scripts/add-migration.cmd
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@echo off
|
||||||
|
set /p migrationName="Migration Name: "
|
||||||
|
dotnet ef migrations add %migrationName% --startup-project "../Api" --project "../Data" --context ApplicationContext
|
||||||
3
scripts/reset-database.cmd
Normal file
3
scripts/reset-database.cmd
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@echo off
|
||||||
|
dotnet ef database drop --force --startup-project "../Api" --project "../Data" --context ApplicationContext
|
||||||
|
dotnet ef database update --startup-project "../Api" --project "../Data" --context ApplicationContext
|
||||||
2
scripts/update-database.cmd
Normal file
2
scripts/update-database.cmd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@echo off
|
||||||
|
dotnet ef database update --startup-project "../Api" --project "../Data" --context ApplicationContext
|
||||||
13
src/dotnet/.idea/.idea.W542.GandalfReborn/.idea/dataSources.xml
generated
Normal file
13
src/dotnet/.idea/.idea.W542.GandalfReborn/.idea/dataSources.xml
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
|
<data-source source="LOCAL" name="gandalf_reborn@localhost" uuid="bab9ebb9-1d19-47a6-99eb-3d08d269e026">
|
||||||
|
<driver-ref>postgresql</driver-ref>
|
||||||
|
<synchronize>true</synchronize>
|
||||||
|
<configured-by-url>true</configured-by-url>
|
||||||
|
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
|
||||||
|
<jdbc-url>jdbc:postgresql://localhost:5432/gandalf_reborn?logServerErrorDetail=True&password=root&user=root</jdbc-url>
|
||||||
|
<working-dir>$ProjectFileDir$</working-dir>
|
||||||
|
</data-source>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Loading…
x
Reference in New Issue
Block a user