feat(api) : ajoute pagination et filtres pour les catalogues
This commit is contained in:
13
makefile
13
makefile
@@ -130,15 +130,18 @@ import-data:
|
||||
# Fixtures management
|
||||
fixtures-dump:
|
||||
@echo "Dumping current database to fixtures/data.sql..."
|
||||
$(DOCKER_COMPOSE) exec -T db pg_dump -U $(POSTGRES_USER) -d $(POSTGRES_DB) --data-only --inserts --no-owner --no-privileges | grep -v "^pg_dump:" | grep -v "^\\\\restrict" > fixtures/data.sql
|
||||
@echo "Fixtures saved to fixtures/data.sql ($(shell wc -l < fixtures/data.sql) lines)"
|
||||
$(DOCKER_COMPOSE) exec -T db pg_dump -U $(POSTGRES_USER) -d $(POSTGRES_DB) \
|
||||
--data-only --inserts --no-owner --no-privileges \
|
||||
--exclude-table=doctrine_migration_versions \
|
||||
| grep -v "^pg_dump:" | grep -v "^\\\\restrict" > fixtures/data.sql
|
||||
@echo "Fixtures saved to fixtures/data.sql"
|
||||
|
||||
fixtures-load:
|
||||
@echo "Loading fixtures from fixtures/data.sql..."
|
||||
@echo "Loading fixtures from fixtures/data.sql (FK checks disabled)..."
|
||||
$(DOCKER_COMPOSE) exec -T db psql -U $(POSTGRES_USER) -d $(POSTGRES_DB) -c "SET session_replication_role = replica;"
|
||||
$(DOCKER_COMPOSE) exec -T db psql -U $(POSTGRES_USER) -d $(POSTGRES_DB) < fixtures/data.sql
|
||||
-$(DOCKER_COMPOSE) exec -T db psql -U $(POSTGRES_USER) -d $(POSTGRES_DB) < fixtures/data.sql
|
||||
$(DOCKER_COMPOSE) exec -T db psql -U $(POSTGRES_USER) -d $(POSTGRES_DB) -c "SET session_replication_role = DEFAULT;"
|
||||
@echo "Fixtures loaded successfully!"
|
||||
@echo "Fixtures loaded!"
|
||||
|
||||
fixtures-reset:
|
||||
@echo "Resetting database and loading fixtures..."
|
||||
|
||||
Reference in New Issue
Block a user