Commit d3d1caa1 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'cleanup-migrations' into 'master'

minor: cleanup-migrations

See merge request !3
parents 13f5bb1c 67881bb9
Pipeline #5052 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-01 18:22
# Generated by Django 1.11.20 on 2019-08-28 12:01
from __future__ import unicode_literals
import datetime
......@@ -12,6 +12,7 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('djangoldp_project', '0001_initial'),
]
operations = [
......@@ -20,7 +21,6 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('htAmount', models.DecimalField(decimal_places=2, max_digits=11)),
('creationDate', models.DateField(auto_now_add=True)),
('modificationDate', models.DateField(auto_now=True)),
],
......@@ -35,11 +35,13 @@ class Migration(migrations.Migration):
('identifier', models.CharField(max_length=255)),
('title', models.CharField(max_length=255)),
('state', models.CharField(choices=[('pending', 'en attente'), ('paid', 'réglée')], default='pending', max_length=255)),
('htAmount', models.DecimalField(decimal_places=2, max_digits=11)),
('tvaRate', models.DecimalField(decimal_places=2, max_digits=4)),
('creationDate', models.DateField(auto_now_add=True)),
('modificationDate', models.DateField(auto_now=True)),
('invoicingDate', models.DateField(default=datetime.date.today)),
('additionalText', models.CharField(blank=True, max_length=255, null=True)),
('customer', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_project.Customer')),
('project', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_project.Project')),
],
options={
'permissions': (('view_invoice', 'Read'), ('control_invoice', 'Control')),
......@@ -54,7 +56,8 @@ class Migration(migrations.Migration):
('title', models.CharField(blank=True, max_length=255, null=True, verbose_name='Titre facture')),
('state', models.CharField(choices=[('pending', 'en attente'), ('sent', 'envoyé'), ('paid', 'payé')], default='pending', max_length=255)),
('htAmount', models.DecimalField(decimal_places=2, max_digits=11)),
('tvaRate', models.DecimalField(choices=[(0.0, 0.0), (20.0, 20.0)], decimal_places=2, default=20.0, max_digits=4)),
('tvaRate', models.DecimalField(choices=[(0.0, 'exonération de TVA'), (20.0, '20%')], decimal_places=2, default=20.0, max_digits=4)),
('uploadUrl', models.URLField(blank=True, null=True)),
('creationDate', models.DateField(auto_now_add=True)),
('modificationDate', models.DateField(auto_now=True)),
('invoicingDate', models.DateField(default=datetime.date.today)),
......@@ -71,15 +74,12 @@ class Migration(migrations.Migration):
('htAmount', models.DecimalField(decimal_places=2, max_digits=11)),
('creationDate', models.DateField(auto_now_add=True)),
('modificationDate', models.DateField(auto_now=True)),
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='djangoldp_invoice.Batch')),
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='djangoldp_invoice.Batch')),
],
options={
'permissions': (('view_batch', 'Read'), ('control_batch', 'Control')),
},
),
migrations.AddField(
model_name='batch',
name='invoice',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='djangoldp_invoice.CustomerInvoice'),
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='batches', to='djangoldp_invoice.CustomerInvoice'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-06 18:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoice', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='batch',
name='invoice',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='batches', to='djangoldp_invoice.CustomerInvoice'),
),
migrations.AlterField(
model_name='task',
name='batch',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='djangoldp_invoice.Batch'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-01-14 16:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoice', '0002_auto_20181206_1856'),
]
operations = [
migrations.RemoveField(
model_name='batch',
name='htAmount',
),
migrations.RemoveField(
model_name='customerinvoice',
name='htAmount',
),
migrations.AlterField(
model_name='freelanceinvoice',
name='tvaRate',
field=models.DecimalField(choices=[(0.0, 'exonération de TVA'), (20.0, '20%')], decimal_places=2, default=20.0, max_digits=4),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-01-17 02:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('djangoldp_project', '0002_move_jabber'),
('djangoldp_invoice', '0003_auto_20190114_1630'),
]
operations = [
migrations.AddField(
model_name='customerinvoice',
name='customer',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_project.Customer'),
),
migrations.AddField(
model_name='customerinvoice',
name='project',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_project.Project'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-27 06:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoice', '0004_auto_20190117_0215'),
]
operations = [
migrations.AlterModelOptions(
name='task',
options={'default_permissions': ('add', 'change', 'delete', 'view', 'control')},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-28 02:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoice', '0005_auto_20190327_0653'),
]
operations = [
migrations.AddField(
model_name='customerinvoice',
name='additionalText',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-10 04:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_invoice', '0006_customerinvoice_additionaltext'),
]
operations = [
migrations.AddField(
model_name='freelanceinvoice',
name='uploadUrl',
field=models.URLField(blank=True, null=True),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment