forked from hossainchisty/FreshGerium-ERP-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restore_db.sh
37 lines (23 loc) · 1.01 KB
/
restore_db.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
echo "==> Migrating to the db"
python manage.py makemigrations
python manage.py migrate
echo "==> Loading product fixtures..."
python manage.py loaddata products/fixtures/product_model.json
echo "==> Loading category fixtures..."
python manage.py loaddata products/fixtures/category.json
echo "==> Loading unit fixtures..."
python manage.py loaddata products/fixtures/unit.json
echo "==> Loading expense fixtures..."
python manage.py loaddata expense/fixtures/expense.json
echo "==> Loading expense category fixtures..."
python manage.py loaddata expense/fixtures/expense_category.json
echo "==> Loading customer fixtures..."
python manage.py loaddata customers/fixtures/customer.json
echo "==> Loading suppliers fixtures..."
python manage.py loaddata suppliers/fixtures/suppliers.json
echo "==> Loading account fixtures..."
python manage.py loaddata accounts/fixtures/bank_account_model.json
echo "==> Loading sale fixtures..."
python manage.py loaddata sales/fixtures/sales_model.json
echo "==> Done!"