mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
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:
43
pgweb/profserv/migrations/0001_initial.py
Normal file
43
pgweb/profserv/migrations/0001_initial.py
Normal 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',),
|
||||
},
|
||||
),
|
||||
]
|
0
pgweb/profserv/migrations/__init__.py
Normal file
0
pgweb/profserv/migrations/__init__.py
Normal file
Reference in New Issue
Block a user