refactor(backend): structural change to match directus-sync's default (#377)

* a small structural change to fit better with the default of directus-sync

* revert mage conflict
This commit is contained in:
Ulf Gebhardt 2025-09-10 11:20:51 +01:00 committed by GitHub
parent 79af6ed3f9
commit 756a2cdf64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
53 changed files with 5 additions and 5 deletions

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -23,19 +23,19 @@ npx directus-sync push \
--directus-password $DIRECTUS_PASSWORD \
|| exit 1
echo "Seed data via directus-sync"
echo "Seed data"
npx directus-sync seed push \
--seed-path $PROJECT_FOLDER/seed \
--directus-url $DIRECTUS_URL \
--directus-email $DIRECTUS_EMAIL \
--directus-password $DIRECTUS_PASSWORD \
--seed-path $PROJECT_FOLDER/seed/directus \
|| exit 1
SEED_SQL_DIR=$PROJECT_FOLDER/seed/manual
SQL_DIR=$PROJECT_FOLDER/sql
echo "Seed data via sql-files"
echo "Execute custom sql-files"
# apply database updates
for filename in $SEED_SQL_DIR/*.sql; do
for filename in $SQL_DIR/*.sql; do
echo "Executing $filename"
docker exec -i utopia-map-database-1 /bin/bash -c "PGPASSWORD=$PGPASSWORD psql -v ON_ERROR_STOP=1 --username $PGUSER $PGDATABASE" < $filename || exit 1
done