# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-05 08:56
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('aims', '0060_drop_viewedmodels'),
    ]

    operations = [
        migrations.RunSQL('''DROP VIEW IF EXISTS aims_commitmenttotal'''),
        migrations.CreateModel(
            name='CommitmentTotal',
            fields=[
                ('activity', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='commitmenttotal', serialize=False, to='aims.Activity')),
                ('value', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('dollars', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('currency', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='aims.Currency')),
            ],
        ),
    ]
