Skip to content

Commit

Permalink
[Issue #174] added the missing migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
scaphilo committed Sep 17, 2018
1 parent b35127e commit 0c40f31
Show file tree
Hide file tree
Showing 8 changed files with 563 additions and 0 deletions.
363 changes: 363 additions & 0 deletions koalixcrm/crm/migrations/0048_auto_20180913_2009.py

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions koalixcrm/crm/migrations/0049_auto_20180913_2124.py
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'),
),
]
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 koalixcrm/crm/migrations/0051_remove_estimation_estimation_type.py
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',
),
]
54 changes: 54 additions & 0 deletions koalixcrm/crm/migrations/0052_auto_20180914_1853.py
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,
),
]
40 changes: 40 additions & 0 deletions koalixcrm/crm/migrations/0053_auto_20180914_1856.py
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',
),
]
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'),
),
]
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',
),
]

0 comments on commit 0c40f31

Please sign in to comment.