jamiya / scripts /migrate.py

Commit History

Enhance requirements and refactor migration script: add new dependencies for SQLAlchemy and Alembic, improve MongoDB migration logic with collection creation and indexing, and update logging for better traceability.
e2eee76

jameszokah commited on

Refactor application structure: rename 'models' directory to 'db_models', update import paths across multiple files, and enhance Dockerfile to create and populate the new directory, improving organization and clarity in the codebase.
df50c8c

jameszokah commited on

Refactor migration script: streamline the database migration process by removing Alembic dependencies, updating logging for clarity, and initializing database tables directly. Enhance error handling for improved debugging during migration execution.
bd54343

jameszokah commited on

Refactor model structure: update import paths from 'app.modelz' to 'app.models' across multiple files for consistency, remove obsolete 'modelz' directory, and adjust Dockerfile and migration script to reflect these changes, enhancing clarity and organization in the codebase.
c27f115

jameszokah commited on

Refactor application structure: update model import paths from 'app.model' to 'app.modelz' across multiple files for consistency, and introduce new database models in 'app.modelz.database' to enhance organization and clarity in the codebase.
0caca00

jameszokah commited on

Refactor imports across application files: update model import paths from 'app.models' to 'app.model' for consistency and clarity, ensuring correct module references throughout the codebase.
321ea93

jameszokah commited on

Enhance Dockerfile and migration script: add debug verification for copied files in Dockerfile, and update logging in migrate.py to reflect changes in PYTHONPATH and improve error handling with detailed directory listings on import failure.
890b0ad

jameszokah commited on

Refactor Dockerfile and migration script: adjust directory creation order in Dockerfile for improved clarity, and enhance logging in migrate.py to include current directory and file existence checks for better debugging.
d5bb983

jameszokah commited on

Refactor Dockerfile and migration script: simplify PYTHONPATH configuration in Dockerfile, enhance directory creation, and improve error handling in migrate.py by logging directory contents on import failure.
053d168

jameszokah commited on

Refactor Dockerfile and migration scripts: update Dockerfile to use Python slim image, streamline environment variable settings, and enhance permissions handling. Modify migrate.py to improve module path management and error handling, and update run.sh for better directory structure and debugging output.
bed415e

jameszokah commited on

Refactor app initialization and migration script: make __init__.py intentionally empty for package structure, and update migrate.py to include project root in Python path for improved module accessibility.
275b1e7

jameszokah commited on

Refactor application imports and migration script: update model import paths in env.py and migrate.py, enhance app initialization in __init__.py, and modify PYTHONPATH in run.sh for improved directory structure.
126ae8d

jameszokah commited on

Update Alembic configuration and migration scripts: change script location and version path in alembic.ini, add env.py for migration management, create initial migration script for audiobooks table, and implement migration execution in a new migrate.py script.
d4255ec

jameszokah commited on