Commit 36c522188ef408ccfa2da1413526624c968adcab
1 parent
43b8bc67
Exists in
master
and in
4 other branches
Removing redundant migration
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
3 changed files
with
4 additions
and
50 deletions
Show diff stats
colab/plugins/migrations/0001_initial.py
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | from __future__ import unicode_literals | 2 | from __future__ import unicode_literals |
3 | 3 | ||
4 | from django.db import models, migrations | 4 | from django.db import models, migrations |
5 | +import datetime | ||
5 | 6 | ||
6 | 7 | ||
7 | class Migration(migrations.Migration): | 8 | class Migration(migrations.Migration): |
@@ -13,9 +14,9 @@ class Migration(migrations.Migration): | @@ -13,9 +14,9 @@ class Migration(migrations.Migration): | ||
13 | migrations.CreateModel( | 14 | migrations.CreateModel( |
14 | name='TimeStampPlugin', | 15 | name='TimeStampPlugin', |
15 | fields=[ | 16 | fields=[ |
16 | - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), | ||
17 | - ('name', models.CharField(max_length=255)), | ||
18 | - ('timestamp', models.DateTimeField(blank=True)), | 17 | + ('id', models.IntegerField(serialize=False, primary_key=True)), |
18 | + ('name', models.CharField(unique=True, max_length=255)), | ||
19 | + ('timestamp', models.DateTimeField(default=datetime.datetime(1, 1, 1, 0, 0), blank=True)), | ||
19 | ], | 20 | ], |
20 | options={ | 21 | options={ |
21 | }, | 22 | }, |
colab/plugins/migrations/0002_auto_20151028_1730.py
@@ -1,26 +0,0 @@ | @@ -1,26 +0,0 @@ | ||
1 | -# -*- coding: utf-8 -*- | ||
2 | -from __future__ import unicode_literals | ||
3 | - | ||
4 | -from django.db import models, migrations | ||
5 | - | ||
6 | - | ||
7 | -class Migration(migrations.Migration): | ||
8 | - | ||
9 | - dependencies = [ | ||
10 | - ('plugins', '0001_initial'), | ||
11 | - ] | ||
12 | - | ||
13 | - operations = [ | ||
14 | - migrations.AlterField( | ||
15 | - model_name='timestampplugin', | ||
16 | - name='id', | ||
17 | - field=models.IntegerField(serialize=False, primary_key=True), | ||
18 | - preserve_default=True, | ||
19 | - ), | ||
20 | - migrations.AlterField( | ||
21 | - model_name='timestampplugin', | ||
22 | - name='name', | ||
23 | - field=models.CharField(unique=True, max_length=255), | ||
24 | - preserve_default=True, | ||
25 | - ), | ||
26 | - ] |
colab/plugins/migrations/0003_auto_20151028_1738.py
@@ -1,21 +0,0 @@ | @@ -1,21 +0,0 @@ | ||
1 | -# -*- coding: utf-8 -*- | ||
2 | -from __future__ import unicode_literals | ||
3 | - | ||
4 | -from django.db import models, migrations | ||
5 | -import datetime | ||
6 | - | ||
7 | - | ||
8 | -class Migration(migrations.Migration): | ||
9 | - | ||
10 | - dependencies = [ | ||
11 | - ('plugins', '0002_auto_20151028_1730'), | ||
12 | - ] | ||
13 | - | ||
14 | - operations = [ | ||
15 | - migrations.AlterField( | ||
16 | - model_name='timestampplugin', | ||
17 | - name='timestamp', | ||
18 | - field=models.DateTimeField(default=datetime.datetime(1, 1, 1, 0, 0), blank=True), | ||
19 | - preserve_default=True, | ||
20 | - ), | ||
21 | - ] |