Reset migrations
This commit is contained in:
1 parent
561caf570f
commit
ad52fb14f0
4 files changed
+6
-68
No files matched your search
@@ -16,12 +16,12 @@ class Migration(migrations.Migration):
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
('source', models.EmailField(max_length=75)),
|
||||
('destination', models.EmailField(max_length=75)),
|
||||
('source', models.EmailField(max_length=254)),
|
||||
('destination', models.EmailField(max_length=254)),
|
||||
('active', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
'verbose_name_plural': 'aliases',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
@@ -31,7 +31,7 @@ class Migration(migrations.Migration):
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
('name', models.CharField(max_length=1000)),
|
||||
('name', models.CharField(unique=True, max_length=254)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
@@ -44,7 +44,7 @@ class Migration(migrations.Migration):
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
('email', models.EmailField(max_length=75)),
|
||||
('email', models.EmailField(unique=True, max_length=254)),
|
||||
('password', models.CharField(max_length=109)),
|
||||
('domain', models.ForeignKey(to='dpdapi.Domain')),
|
||||
],
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dpdapi', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='alias',
|
||||
options={'verbose_name_plural': 'aliases'},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='domain',
|
||||
name='name',
|
||||
field=models.CharField(unique=True, max_length=1000),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='email',
|
||||
field=models.EmailField(unique=True, max_length=75),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
@@ -1,32 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dpdapi', '0002_auto_20150107_0309'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='alias',
|
||||
name='destination',
|
||||
field=models.EmailField(max_length=254),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='alias',
|
||||
name='source',
|
||||
field=models.EmailField(max_length=254),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='email',
|
||||
field=models.EmailField(unique=True, max_length=254),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -24,7 +24,7 @@ class Alias(BaseModel):
|
||||
|
||||
|
||||
class Domain(BaseModel):
|
||||
name = models.CharField(max_length=1000, unique=True)
|
||||
name = models.CharField(max_length=254, unique=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
Reference in new issue
Block a user