forked from Samuel-Buteau/universal-battery-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reload.bat
32 lines (24 loc) · 1.15 KB
/
reload.bat
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
(
echo drop database %1;
echo create database %1 with owner %2;
echo \q
) | psql -U postgres
del cell_database\migrations\*
copy NUL cell_database\migrations\__init__.py
del cycling\migrations\*
copy NUL cycling\migrations\__init__.py
del filename_database\migrations\*
copy NUL filename_database\migrations\__init__.py
del machine_learning\migrations\*
copy NUL machine_learning\migrations\__init__.py
python manage.py makemigrations
python manage.py migrate
python manage.py edit_database_filename_database --mode add_category
python manage.py edit_database_filename_database --mode add_charger_drive_profile
python manage.py edit_database_filename_database --mode add_experiment_type
python manage.py edit_database_filename_database --mode display --model Category
python manage.py edit_database_filename_database --mode display --model ChargerDriveProfile
python manage.py edit_database_filename_database --mode display --model ExperimentType
python manage.py edit_database_filename_database --mode just_add_files --data_dir=%3
python manage.py edit_database_filename_database --mode just_parse_database_files
python manage.py import_and_process_raw_neware --DEBUG