Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/migrations/0015_auto_20190411_1421.py
- This file was added.
# -*- coding: utf-8 -*- | |||||
# Generated by Django 1.11.16 on 2019-04-11 14:21 | |||||
from __future__ import unicode_literals | |||||
from django.db import migrations, models | |||||
class Migration(migrations.Migration): | |||||
dependencies = [ | |||||
('deposit', '0014_auto_20180720_1221'), | |||||
] | |||||
operations = [ | |||||
migrations.AlterField( | |||||
model_name='depositrequest', | |||||
name='type', | |||||
field=models.CharField(choices=[ | |||||
('archive', 'archive'), | |||||
('metadata', 'metadata')], max_length=8), | |||||
), | |||||
migrations.DeleteModel( | |||||
name='DepositRequestType', | |||||
), | |||||
] | |||||
ardumont: Excerpt from irc discussion, this needs more work to actually migrate correctly in production. | |||||
Done Inline Actionsok, so we can edit migration files to do thy bidding [1] You should rarely, if ever, need to edit migration files by hand, but it’s entirely possible to write them manually if you need to. Some of the more complex operations are not autodetectable and are only available via a hand-written migration, so don’t be scared about editing them if you have to. [1] https://docs.djangoproject.com/en/2.1/topics/migrations/ ardumont: ok, so we can edit migration files to do thy bidding [1]
```
You should rarely, if ever, need… | |||||
Done Inline ActionsBetter link to reference the quote is [2], last paragraph. Then [3] for data migration sounds interesting. To actually do the update the data step @olasd mentions \m/ [2] https://docs.djangoproject.com/en/2.1/topics/migrations/#migration-files [3] https://docs.djangoproject.com/en/2.1/topics/migrations/#data-migrations ardumont: Better link to reference the quote is [2], last paragraph.
Then [3] for `data migration`… |
Excerpt from irc discussion, this needs more work to actually migrate correctly in production.