mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-21 09:07:43 +02:00
fix: migration function
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting MongoDB initial data import..."
|
||||
|
||||
# Wait for MongoDB to fully start
|
||||
sleep 10
|
||||
|
||||
# Import the data
|
||||
mongoimport --host localhost --db OpenSignDB --collection _Role --type json --file /docker-entrypoint-initdb.d/legadraGCva._Role.json --jsonArray
|
||||
mongoimport --host localhost --db OpenSignDB --collection _SCHEMA --type json --file /docker-entrypoint-initdb.d/legadraGCva._SCHEMA.json --jsonArray
|
||||
mongoimport --host localhost --db OpenSignDB --collection w_appinfo --type json --file /docker-entrypoint-initdb.d/legadraGCva.w_appinfo.json --jsonArray
|
||||
mongoimport --host localhost --db OpenSignDB --collection w_dashboard --type json --file /docker-entrypoint-initdb.d/legadraGCva.w_dashboard.json --jsonArray
|
||||
mongoimport --host localhost --db OpenSignDB --collection w_menu --type json --file /docker-entrypoint-initdb.d/legadraGCva.w_menu.json --jsonArray
|
||||
|
||||
|
||||
|
||||
echo "MongoDB initial data import done."
|
||||
Reference in New Issue
Block a user