-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue #174] added the missing migrations
- Loading branch information
Showing
8 changed files
with
563 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,29 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-13 19:24 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0048_auto_20180913_2009'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='resource', | ||
name='default_resource_price', | ||
), | ||
migrations.AlterField( | ||
model_name='estimation', | ||
name='estimation_from', | ||
field=models.DateField(verbose_name='Estimation From'), | ||
), | ||
migrations.AlterField( | ||
model_name='estimation', | ||
name='estimation_to', | ||
field=models.DateField(verbose_name='Estimation To'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
koalixcrm/crm/migrations/0050_remove_estimation_estimation_status.py
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-13 19:47 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0049_auto_20180913_2124'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='estimation', | ||
name='estimation_status', | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
koalixcrm/crm/migrations/0051_remove_estimation_estimation_type.py
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-13 19:51 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0050_remove_estimation_estimation_status'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='estimation', | ||
name='estimation_type', | ||
), | ||
] |
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,54 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-14 16:53 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0051_remove_estimation_estimation_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='EstimationStatus', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('title', models.CharField(max_length=250, verbose_name='Title')), | ||
('description', models.TextField(blank=True, null=True, verbose_name='Text')), | ||
('is_obsolete', models.BooleanField(verbose_name='Status represents estimation is obsolete')), | ||
], | ||
options={ | ||
'verbose_name': 'Estimation Status', | ||
'verbose_name_plural': 'Estimation Status', | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='agreement', | ||
options={'verbose_name': 'Agreement', 'verbose_name_plural': 'Agreements'}, | ||
), | ||
migrations.RenameField( | ||
model_name='estimation', | ||
old_name='estimation_amount', | ||
new_name='amount', | ||
), | ||
migrations.RenameField( | ||
model_name='estimation', | ||
old_name='estimation_from', | ||
new_name='date_from', | ||
), | ||
migrations.RenameField( | ||
model_name='estimation', | ||
old_name='estimation_to', | ||
new_name='date_until', | ||
), | ||
migrations.AddField( | ||
model_name='estimation', | ||
name='status', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='crm.EstimationStatus'), | ||
preserve_default=False, | ||
), | ||
] |
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 -*- | ||
# Generated by Django 1.11 on 2018-09-14 16:56 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0052_auto_20180914_1853'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='agreement', | ||
old_name='agreement_amount', | ||
new_name='amount', | ||
), | ||
migrations.RenameField( | ||
model_name='agreement', | ||
old_name='agreement_from', | ||
new_name='date_from', | ||
), | ||
migrations.RenameField( | ||
model_name='agreement', | ||
old_name='agreement_to', | ||
new_name='date_until', | ||
), | ||
migrations.RenameField( | ||
model_name='agreement', | ||
old_name='agreement_status', | ||
new_name='status', | ||
), | ||
migrations.RenameField( | ||
model_name='agreement', | ||
old_name='agreement_type', | ||
new_name='type', | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
koalixcrm/crm/migrations/0054_project_default_reporting_period_duration.py
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,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-14 17:10 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0053_auto_20180914_1856'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='project', | ||
name='default_reporting_period_duration', | ||
field=models.DurationField(blank=True, null=True, verbose_name='Duration of Default Reporting Period'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
koalixcrm/crm/migrations/0055_remove_project_default_reporting_period_duration.py
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-09-14 17:13 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('crm', '0054_project_default_reporting_period_duration'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='project', | ||
name='default_reporting_period_duration', | ||
), | ||
] |