Release v1.9.0
· 2 min read
Bublik v1.9.0 is a small release that fixes a longstanding issue with database migrations.
Admin Section
Backend Update
- Navigate to the backend directory:
cd bublik
- Fetch updates from all remote repositories:
git remote update
- Check out the latest stable release before the new one:
git checkout v1.8.0
- Ensure all migrations are created and applied:
./scripts/deploy --steps migrate_db
- ⚠️ Backup the database to ensure rollback is possible in case of issues.
- ⚠️ Backup the migrations folder (bublik/data/migrations/), in case they are needed for rollback or comparison.
- Delete all migration files from the migrations folder (except __init__.py):
find . -path "*/bublik/data/migrations/*.py" -not -name "__init__.py" -delete
- Check out this release:
git checkout v1.9.0
. - Activate the virtual environment:
source .env/bin/activate
- Delete all migration records from the database:
python3 manage.py dbshell -- -c 'TRUNCATE "django_migrations";'
. - Apply migrations without executing SQL (mark as applied):
python3 manage.py migrate --fake
- Restart the services:
./scripts/deploy --steps run_services
Frontend Update
- Trigger the workflow in your frontend repository
- Synchronize the mirrors
cd bublik-ui
git remote update
git checkout v1.9.0
Documentation Update
- Trigger the workflow in your frontend repository
- Synchronize the mirrors
cd bublik-docs
git remote update
git checkout v1.9.0
Docker Instance Updatee
task backup:create
task pull
task up
task migrations:transition_1.8.0_to_1.9.0
task up
Changelog
Backend
📦 Chores
- database: track and commit database migrations in Git (c0a4699)