reinvest/backend/api/migrations/0002_auto_20210130_2301.py

44 lines
1.2 KiB
Python

# Generated by Django 3.1.5 on 2021-01-30 23:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='charity',
name='id',
),
migrations.RemoveField(
model_name='stock',
name='id',
),
migrations.AlterField(
model_name='charity',
name='ein',
field=models.CharField(max_length=50, primary_key=True, serialize=False),
preserve_default=False,
),
migrations.AlterField(
model_name='profile',
name='percentage',
field=models.DecimalField(blank=True, decimal_places=2, max_digits=3, null=True),
),
migrations.AlterField(
model_name='stock',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stocks', to='api.profile'),
),
migrations.AlterField(
model_name='stock',
name='uuid',
field=models.UUIDField(primary_key=True, serialize=False, unique=True),
),
]