-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d13d1b0
commit c3e7564
Showing
6 changed files
with
177 additions
and
5 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,48 @@ | ||
# Generated by Django 3.0.3 on 2020-05-08 00:28 | ||
|
||
import django.contrib.postgres.fields.ranges | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_countries.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mdi', '0062_auto_20200505_0225'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GeographicScope', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('scope', models.CharField(blank=True, choices=[(0, 'Local'), (1, 'Regional'), (2, 'National'), (3, 'International')], max_length=8)), | ||
('city', models.CharField(blank=True, default='', max_length=255)), | ||
('region', models.CharField(blank=True, default='', max_length=255)), | ||
('country', django_countries.fields.CountryField(blank=True, max_length=2)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='code_availability', | ||
field=models.CharField(blank=True, choices=[(0, 'Yes'), (1, 'Partially'), (2, 'No')], max_length=8), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='impacted_exact_number', | ||
field=models.IntegerField(blank=True, default=None, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='impacted_range', | ||
field=django.contrib.postgres.fields.ranges.IntegerRangeField(default=None, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='geographic_scope', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mdi.GeographicScope'), | ||
), | ||
] |
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,24 @@ | ||
# Generated by Django 3.0.3 on 2020-05-08 02:46 | ||
|
||
import django.contrib.postgres.fields.ranges | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mdi', '0063_auto_20200508_0028'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='geographicscope', | ||
name='scope', | ||
field=models.CharField(blank=True, choices=[(0, 'Local'), (1, 'Regional'), (2, 'National'), (3, 'International')], max_length=16), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='impacted_range', | ||
field=django.contrib.postgres.fields.ranges.IntegerRangeField(blank=True, default=None, null=True), | ||
), | ||
] |
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,41 @@ | ||
# Generated by Django 3.0.3 on 2020-05-08 03:54 | ||
|
||
from django.db import migrations, models | ||
import django_countries.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mdi', '0064_auto_20200508_0246'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='organization', | ||
name='geographic_scope', | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='geo_scope', | ||
field=models.CharField(blank=True, choices=[(0, 'Local'), (1, 'Regional'), (2, 'National'), (3, 'International')], max_length=16), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='geo_scope_city', | ||
field=models.CharField(blank=True, default='', max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='geo_scope_country', | ||
field=django_countries.fields.CountryField(blank=True, max_length=2), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='geo_scope_region', | ||
field=models.CharField(blank=True, default='', max_length=255), | ||
), | ||
migrations.DeleteModel( | ||
name='GeographicScope', | ||
), | ||
] |
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,49 @@ | ||
# Generated by Django 3.0.3 on 2020-05-11 18:14 | ||
|
||
from django.db import migrations, models | ||
import django_countries.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('mdi', '0065_auto_20200508_0354'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='organization', | ||
name='founded_max_date', | ||
field=models.DateField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='organization', | ||
name='founded_min_date', | ||
field=models.DateField(blank=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='geo_scope', | ||
field=models.CharField(blank=True, choices=[(0, 'Local'), (1, 'Regional'), (2, 'National'), (3, 'International')], max_length=16, verbose_name='Geographic scope'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='geo_scope_city', | ||
field=models.CharField(blank=True, default='', max_length=255, verbose_name='Geographic scope – City'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='geo_scope_country', | ||
field=django_countries.fields.CountryField(blank=True, max_length=2, verbose_name='Geographic scope – Country'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='geo_scope_region', | ||
field=models.CharField(blank=True, default='', max_length=255, verbose_name='Geographic scope – Region'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='num_workers', | ||
field=models.IntegerField(blank=True, null=True, verbose_name='Number of workers'), | ||
), | ||
] |
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