-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration to set rpm as type to all components
This needs to be done before component type is made non-optional and prevents migration error on PostgreSQL 9.2.
- Loading branch information
Showing
2 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2015 Red Hat | ||
# Licensed under The MIT License (MIT) | ||
# http://opensource.org/licenses/MIT | ||
# | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('component', '0006_auto_20150818_0614'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='releasecomponent', | ||
name='type', | ||
field=models.ForeignKey(related_name='release_components', on_delete=django.db.models.deletion.SET_DEFAULT, default=1, to='component.ReleaseComponentType'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentgroup', | ||
name='group_type', | ||
field=models.ForeignKey(related_name='release_component_groups', on_delete=django.db.models.deletion.PROTECT, to='component.GroupType'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentrelationship', | ||
name='from_component', | ||
field=models.ForeignKey(related_name='from_release_components', to='component.ReleaseComponent'), | ||
), | ||
migrations.AlterField( | ||
model_name='releasecomponentrelationship', | ||
name='to_component', | ||
field=models.ForeignKey(related_name='to_release_components', to='component.ReleaseComponent'), | ||
), | ||
] |