corrections json import

This commit is contained in:
2025-10-22 22:01:28 +02:00
parent f8823a10e2
commit 419a8987f5
3 changed files with 25362 additions and 25555 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/bash
set -e
for file in /initdb.d/commandes/*.json; do
for file in /initdb.d/*.json; do
collection=$(basename "$file" .json)
echo "Importing $collection..."
mongoimport --db commerce --collection "$collection" --file "$file" --jsonArray
mongoimport --db iut --collection "$collection" --file "$file" --jsonArray
done