P_chandra_migrator/migrate.bat

31 lines
664 B
Batchfile

@echo off
REM Activate the virtual environment
call .\env\Scripts\activate
REM Run migrate_groups.py
echo Migrating Groups
python migrate_groups.py
echo Group migration completed.
REM Run migrate_users.py
echo Migrating Users
python migrate_users.py
echo User migration completed.
REM Run migrate_subscriptions.py
echo Migrating Subscriptions
python migrate_subscriptions.py
echo Subscription migration completed.
REM Run migrate_transactions.py
echo Migrating Transactions
python migrate_transactions.py
echo Transaction migration completed.
REM Deactivate the virtual environment
call .\env\Scripts\deactivate.bat
echo All migrations have been run.
pause