add initial data model for managemails
This commit is contained in:
parent
0e5486f049
commit
540871865f
3 changed files with 53 additions and 1 deletions
44
gnuviechadmin/managemails/migrations/0001_initial.py
Normal file
44
gnuviechadmin/managemails/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from south.utils import datetime_utils as datetime
|
||||||
|
from south.db import db
|
||||||
|
from south.v2 import SchemaMigration
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(SchemaMigration):
|
||||||
|
|
||||||
|
def forwards(self, orm):
|
||||||
|
# Adding model 'Mailbox'
|
||||||
|
db.create_table(u'managemails_mailbox', (
|
||||||
|
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
|
('username', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('domain', self.gf('django.db.models.fields.CharField')(max_length=128)),
|
||||||
|
('password', self.gf('django.db.models.fields.CharField')(max_length=64)),
|
||||||
|
('home', self.gf('django.db.models.fields.CharField')(max_length=255)),
|
||||||
|
('uid', self.gf('django.db.models.fields.PositiveSmallIntegerField')()),
|
||||||
|
('gid', self.gf('django.db.models.fields.PositiveSmallIntegerField')()),
|
||||||
|
('active', self.gf('django.db.models.fields.BooleanField')(default=True)),
|
||||||
|
))
|
||||||
|
db.send_create_signal(u'managemails', ['Mailbox'])
|
||||||
|
|
||||||
|
|
||||||
|
def backwards(self, orm):
|
||||||
|
# Deleting model 'Mailbox'
|
||||||
|
db.delete_table(u'managemails_mailbox')
|
||||||
|
|
||||||
|
|
||||||
|
models = {
|
||||||
|
u'managemails.mailbox': {
|
||||||
|
'Meta': {'object_name': 'Mailbox'},
|
||||||
|
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
|
||||||
|
'domain': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||||||
|
'gid': ('django.db.models.fields.PositiveSmallIntegerField', [], {}),
|
||||||
|
'home': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
|
||||||
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
|
'password': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
|
||||||
|
'uid': ('django.db.models.fields.PositiveSmallIntegerField', [], {}),
|
||||||
|
'username': ('django.db.models.fields.CharField', [], {'max_length': '128'})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
complete_apps = ['managemails']
|
0
gnuviechadmin/managemails/migrations/__init__.py
Normal file
0
gnuviechadmin/managemails/migrations/__init__.py
Normal file
|
@ -1,3 +1,11 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
|
class Mailbox(models.Model):
|
||||||
|
username = models.CharField(max_length=128)
|
||||||
|
domain = models.CharField(max_length=128)
|
||||||
|
password = models.CharField(max_length=64)
|
||||||
|
home = models.CharField(max_length=255)
|
||||||
|
uid = models.PositiveSmallIntegerField()
|
||||||
|
gid = models.PositiveSmallIntegerField()
|
||||||
|
active = models.BooleanField(default=True)
|
||||||
|
|
Loading…
Reference in a new issue