Skip to content

Commit

Permalink
Need to split these out to appease the postgres gods
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Jul 26, 2018
1 parent 86e8d8e commit cea9763
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/migrations/0010_auto_20180726_1700.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,4 @@ class Migration(migrations.Migration):

operations = [
migrations.RunPython(unique_serials),
migrations.AlterField(
model_name='computer',
name='serial',
field=models.CharField(max_length=200, unique=True, verbose_name=b'Serial Number'),
),
]
21 changes: 21 additions & 0 deletions server/migrations/0011_manual_unique_serials.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-07-26 16:00
from __future__ import unicode_literals

from server.models import *
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('server', '0010_auto_20180726_1700'),
]

operations = [
migrations.AlterField(
model_name='computer',
name='serial',
field=models.CharField(max_length=200, unique=True, verbose_name=b'Serial Number'),
),
]

0 comments on commit cea9763

Please sign in to comment.