From 4951360a39a54469a4829a77424243db3c104fad Mon Sep 17 00:00:00 2001 From: aniversarioperu Date: Thu, 6 Aug 2015 17:37:45 +0300 Subject: [PATCH] fix migrationss --- .../apps/visitors/migrations/0001_initial.py | 26 ++++++++++--------- .../migrations/0002_auto_20150123_1322.py | 20 -------------- 2 files changed, 14 insertions(+), 32 deletions(-) delete mode 100644 manolo/apps/visitors/migrations/0002_auto_20150123_1322.py diff --git a/manolo/apps/visitors/migrations/0001_initial.py b/manolo/apps/visitors/migrations/0001_initial.py index 853c6b2..6bf77ae 100644 --- a/manolo/apps/visitors/migrations/0001_initial.py +++ b/manolo/apps/visitors/migrations/0001_initial.py @@ -13,21 +13,23 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Visitor', fields=[ - ('id', models.AutoField(serialize=False, primary_key=True)), - ('sha1', models.CharField(null=True, help_text='Use it as identifier for any record regardless oforigin. It is built with: date + id_number + time_start', max_length=40)), - ('full_name', models.CharField(help_text='Full name of visitor', max_length=250)), - ('entity', models.CharField(help_text='Entity that the visitor represents', max_length=250)), - ('meeting_place', models.CharField(help_text='Location where meeting takes place', max_length=250)), - ('office', models.CharField(help_text='Office that visitor visits. Some peruvian institutions haveit as `unidad`.', max_length=250)), - ('host_name', models.CharField(help_text='Name of person that receives visitor', max_length=250)), - ('reason', models.CharField(help_text='Reason behind the meeting. Some peruvian institutions haveit as `observación`.', max_length=250)), - ('institution', models.CharField(help_text='Institution visited', max_length=250)), - ('location', models.CharField(help_text='Location of Institution. Some institution have severallocations. In PCM is know as `sede`.', max_length=250)), - ('id_number', models.IntegerField(help_text='Id number')), - ('id_document', models.CharField(help_text='Identification document', max_length=250)), + ('id', models.AutoField(primary_key=True, serialize=False)), + ('sha1', models.CharField(max_length=40, null=True, help_text='Use it as identifier for any record regardless oforigin. It is built with: date + id_number + time_start')), + ('full_name', models.CharField(max_length=250, help_text='Full name of visitor')), + ('entity', models.CharField(max_length=250, help_text='Entity that the visitor represents')), + ('meeting_place', models.CharField(max_length=250, help_text='Location where meeting takes place')), + ('office', models.CharField(max_length=250, help_text='Office that visitor visits. Some peruvian institutions haveit as `unidad`.')), + ('host_name', models.CharField(max_length=250, help_text='Name of person that receives visitor')), + ('reason', models.CharField(max_length=250, help_text='Reason behind the meeting. Some peruvian institutions haveit as `observación`.')), + ('institution', models.CharField(max_length=250, help_text='Institution visited')), + ('location', models.CharField(max_length=250, help_text='Location of Institution. Some institution have severallocations. In PCM is know as `sede`.')), + ('id_number', models.CharField(max_length=250, help_text='Id number. It should be char field as some numbers begin with zero.')), + ('id_document', models.CharField(max_length=250, help_text='Identification document')), ('date', models.DateField(null=True)), ('time_start', models.CharField(max_length=250)), ('time_end', models.CharField(max_length=250)), + ('created', models.DateTimeField(auto_now_add=True)), + ('modified', models.DateTimeField(auto_now=True)), ], options={ }, diff --git a/manolo/apps/visitors/migrations/0002_auto_20150123_1322.py b/manolo/apps/visitors/migrations/0002_auto_20150123_1322.py deleted file mode 100644 index 1204ad6..0000000 --- a/manolo/apps/visitors/migrations/0002_auto_20150123_1322.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('visitors', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='visitor', - name='id_number', - field=models.CharField(help_text='Id number. It should be char field as some numbers begin with zero.', max_length=250), - preserve_default=True, - ), - ]