higlass / higlass/higlass-server

Migrations are not immutable

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
Python
Stars
22
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Related to #49. I checked the models and migration and notices that the ViewConf tables should have been created but Django kept telling me that all migrations have already been applied. The I checked the history of the migrations (https://github.com/hms-dbmi/higlass-server/blob/master/tilesets/migrations/0001_initial.py) and realized that they are not immutable. This is tricky as it makes updating existing server instances really painful.

Migrations should be immutable and instead new migrations should be added.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the models with tilesets/migrations/0001_initial.py and review Django's migration history. Identify schema changes present in the models but absent from the applied migration, then add them through a new migration rather than changing 0001_initial.py. Done means existing server instances can detect and apply the missing migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.