Add migrations for all existing models

When migrating on existing installations, run the

python manage.py migrate --fake-initial

command.
This commit is contained in:
Magnus Hagander
2016-04-28 14:06:28 +02:00
parent c97ea7cf4d
commit a8500c3853
32 changed files with 804 additions and 0 deletions

View File

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ProfessionalService',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('approved', models.BooleanField(default=False)),
('description', models.TextField()),
('employees', models.CharField(max_length=32, null=True, blank=True)),
('locations', models.CharField(max_length=128, null=True, blank=True)),
('region_africa', models.BooleanField(default=False, verbose_name=b'Africa')),
('region_asia', models.BooleanField(default=False, verbose_name=b'Asia')),
('region_europe', models.BooleanField(default=False, verbose_name=b'Europe')),
('region_northamerica', models.BooleanField(default=False, verbose_name=b'North America')),
('region_oceania', models.BooleanField(default=False, verbose_name=b'Oceania')),
('region_southamerica', models.BooleanField(default=False, verbose_name=b'South America')),
('hours', models.CharField(max_length=128, null=True, blank=True)),
('languages', models.CharField(max_length=128, null=True, blank=True)),
('customerexample', models.TextField(null=True, verbose_name=b'Customer Example', blank=True)),
('experience', models.TextField(null=True, blank=True)),
('contact', models.TextField(null=True, blank=True)),
('url', models.URLField(max_length=128, null=True, verbose_name=b'URL', blank=True)),
('provides_support', models.BooleanField(default=False)),
('provides_hosting', models.BooleanField(default=False)),
('interfaces', models.CharField(max_length=512, null=True, verbose_name=b'Interfaces (for hosting)', blank=True)),
('org', models.OneToOneField(db_column=b'organisation_id', to='core.Organisation', help_text=b'If no organisations are listed, please check the <a href="/account/orglist/">organisation list</a> and contact the organisation manager or webmaster@postgresql.org if none are listed.', verbose_name=b'organisation')),
],
options={
'ordering': ('org__name',),
},
),
]

View File