Reset migrations
parent
28f298ead9
commit
61c9ae394e
|
@ -2,12 +2,16 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import shortuuidfield.fields
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
import django.core.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
@ -19,9 +23,6 @@ class Migration(migrations.Migration):
|
|||
('band', models.CharField(max_length=5, choices=[(b'HF', b'HF'), (b'VHF', b'VHF'), (b'UHF', b'UHF'), (b'L', b'L'), (b'S', b'S'), (b'C', b'C'), (b'X', b'X'), (b'KU', b'KU')])),
|
||||
('antenna_type', models.CharField(max_length=15, choices=[(b'dipole', b'Dipole'), (b'yagi', b'Yagi'), (b'helical', b'Helical'), (b'parabolic', b'Parabolic')])),
|
||||
],
|
||||
options={
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Data',
|
||||
|
@ -29,11 +30,18 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('start', models.DateTimeField()),
|
||||
('end', models.DateTimeField()),
|
||||
('payload', models.FileField(upload_to=b'data_payloads')),
|
||||
('payload', models.FileField(null=True, upload_to=b'data_payloads', blank=True)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['-start', '-end'],
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Mode',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('name', models.CharField(unique=True, max_length=10)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Observation',
|
||||
|
@ -41,10 +49,11 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('start', models.DateTimeField()),
|
||||
('end', models.DateTimeField()),
|
||||
('author', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['-start', '-end'],
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Satellite',
|
||||
|
@ -52,45 +61,74 @@ class Migration(migrations.Migration):
|
|||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('norad_cat_id', models.PositiveIntegerField()),
|
||||
('name', models.CharField(max_length=45)),
|
||||
('names', models.TextField(blank=True)),
|
||||
('image', models.ImageField(upload_to=b'satellites', blank=True)),
|
||||
('tle0', models.CharField(max_length=100, blank=True)),
|
||||
('tle1', models.CharField(max_length=200, blank=True)),
|
||||
('tle2', models.CharField(max_length=200, blank=True)),
|
||||
('updated', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['norad_cat_id'],
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Station',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('name', models.CharField(max_length=45)),
|
||||
('image', models.ImageField(upload_to=b'ground_stations')),
|
||||
('alt', models.PositiveIntegerField()),
|
||||
('image', models.ImageField(upload_to=b'ground_stations', blank=True)),
|
||||
('alt', models.PositiveIntegerField(help_text=b'In meters above ground')),
|
||||
('lat', models.FloatField(validators=[django.core.validators.MaxValueValidator(90), django.core.validators.MinValueValidator(-90)])),
|
||||
('lng', models.FloatField(validators=[django.core.validators.MaxValueValidator(180), django.core.validators.MinValueValidator(-180)])),
|
||||
('featured', models.BooleanField(default=False)),
|
||||
('qthlocator', models.CharField(max_length=255, blank=True)),
|
||||
('location', models.CharField(max_length=255, blank=True)),
|
||||
('featured_date', models.DateField(null=True, blank=True)),
|
||||
('antenna', models.ManyToManyField(to='base.Antenna')),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('active', models.BooleanField(default=False)),
|
||||
('last_seen', models.DateTimeField(null=True, blank=True)),
|
||||
('antenna', models.ManyToManyField(help_text=b'If you want to add a new Antenna contact SatNOGS Team', to='base.Antenna', blank=True)),
|
||||
('owner', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['-active', '-last_seen'],
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Transponder',
|
||||
name='Transmitter',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('uuid', shortuuidfield.fields.ShortUUIDField(db_index=True, max_length=22, editable=False, blank=True)),
|
||||
('description', models.TextField()),
|
||||
('alive', models.BooleanField(default=False)),
|
||||
('uplink_low', models.PositiveIntegerField()),
|
||||
('uplink_high', models.PositiveIntegerField()),
|
||||
('downlink_low', models.PositiveIntegerField()),
|
||||
('downlink_high', models.PositiveIntegerField()),
|
||||
('mode', models.CharField(max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN')])),
|
||||
('alive', models.BooleanField(default=True)),
|
||||
('uplink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('uplink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('invert', models.BooleanField(default=False)),
|
||||
('baud', models.FloatField(validators=[django.core.validators.MinValueValidator(0)])),
|
||||
('satellite', models.ForeignKey(related_name=b'transponder', to='base.Satellite', null=True)),
|
||||
('baud', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)])),
|
||||
('mode', models.ForeignKey(related_name='transmitters', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='base.Mode', null=True)),
|
||||
('satellite', models.ForeignKey(related_name='transmitters', to='base.Satellite', null=True)),
|
||||
],
|
||||
options={
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='satellite',
|
||||
field=models.ForeignKey(to='base.Satellite'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='transmitter',
|
||||
field=models.ForeignKey(related_name='observations', to='base.Transmitter', null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='ground_station',
|
||||
field=models.ForeignKey(to='base.Station'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='observation',
|
||||
field=models.ForeignKey(to='base.Observation'),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -1,212 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import datetime
|
||||
from django.utils.timezone import utc
|
||||
import shortuuidfield.fields
|
||||
from django.conf import settings
|
||||
import django.core.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [(b'base', '0001_initial'), (b'base', '0002_auto_20141015_0800'), (b'base', '0003_auto_20141016_0506'), (b'base', '0004_satellite_tle'), (b'base', '0005_satellite_updated'), (b'base', '0006_auto_20141025_2010'), (b'base', '0007_auto_20141027_0000'), (b'base', '0008_auto_20141027_0113'), (b'base', '0009_auto_20141027_1522'), (b'base', '0010_station_location'), (b'base', '0011_station_created'), (b'base', '0012_auto_20141203_1805'), (b'base', '0013_remove_station_featured'), (b'base', '0014_auto_20150209_0846'), (b'base', '0015_station_qthlocator'), (b'base', '0016_auto_20150506_1002'), (b'base', '0017_auto_20150509_0912')]
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Antenna',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('frequency', models.FloatField(validators=[django.core.validators.MinValueValidator(0)])),
|
||||
('band', models.CharField(max_length=5, choices=[(b'HF', b'HF'), (b'VHF', b'VHF'), (b'UHF', b'UHF'), (b'L', b'L'), (b'S', b'S'), (b'C', b'C'), (b'X', b'X'), (b'KU', b'KU')])),
|
||||
('antenna_type', models.CharField(max_length=15, choices=[(b'dipole', b'Dipole'), (b'yagi', b'Yagi'), (b'helical', b'Helical'), (b'parabolic', b'Parabolic')])),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Data',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('start', models.DateTimeField()),
|
||||
('end', models.DateTimeField()),
|
||||
('payload', models.FileField(upload_to=b'data_payloads')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Observation',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('start', models.DateTimeField()),
|
||||
('end', models.DateTimeField()),
|
||||
('author', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Satellite',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('norad_cat_id', models.PositiveIntegerField()),
|
||||
('name', models.CharField(max_length=45)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Station',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('name', models.CharField(max_length=45)),
|
||||
('image', models.ImageField(upload_to=b'ground_stations', blank=True)),
|
||||
('alt', models.PositiveIntegerField(help_text=b'In meters above ground')),
|
||||
('lat', models.FloatField(validators=[django.core.validators.MaxValueValidator(90), django.core.validators.MinValueValidator(-90)])),
|
||||
('lng', models.FloatField(validators=[django.core.validators.MaxValueValidator(180), django.core.validators.MinValueValidator(-180)])),
|
||||
('featured_date', models.DateField(null=True, blank=True)),
|
||||
('antenna', models.ManyToManyField(help_text=b'If you want to add a new Antenna contact SatNOGS Team', to=b'base.Antenna', null=True, blank=True)),
|
||||
('owner', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('location', models.CharField(max_length=255, null=True, blank=True)),
|
||||
('created', models.DateTimeField(default=datetime.datetime(2015, 6, 9, 15, 56, 50, 800909, tzinfo=utc), auto_now_add=True)),
|
||||
('online', models.BooleanField(default=False, help_text=b'Is your Ground Station functional?')),
|
||||
('qthlocator', models.CharField(max_length=255, null=True, blank=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Transponder',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('description', models.TextField()),
|
||||
('alive', models.BooleanField(default=True)),
|
||||
('uplink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('uplink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('mode', models.CharField(blank=True, max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'BFSK', b'BFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN'), (b'SSTV', b'SSTV'), (b'GMSK', b'GMSK'), (b'SSB', b'SSB')])),
|
||||
('invert', models.BooleanField(default=False)),
|
||||
('baud', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)])),
|
||||
('satellite', models.ForeignKey(related_name=b'transponder', to='base.Satellite', null=True)),
|
||||
('uuid', shortuuidfield.fields.ShortUUIDField(db_index=True, max_length=22, editable=False, blank=True)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='satellite',
|
||||
field=models.ForeignKey(to='base.Satellite'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='transponder',
|
||||
field=models.ForeignKey(to='base.Transponder', null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='ground_station',
|
||||
field=models.ForeignKey(to='base.Station'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='observation',
|
||||
field=models.ForeignKey(to='base.Observation'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='updated',
|
||||
field=models.DateTimeField(default=datetime.datetime(2015, 6, 9, 15, 56, 50, 787197, tzinfo=utc), auto_now_add=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle0',
|
||||
field=models.CharField(max_length=100, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle1',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle2',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='data',
|
||||
name='payload',
|
||||
field=models.FileField(null=True, upload_to=b'data_payloads'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='data',
|
||||
name='payload',
|
||||
field=models.FileField(null=True, upload_to=b'data_payloads', blank=True),
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='data',
|
||||
options={'ordering': ['-start', '-end']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='observation',
|
||||
options={'ordering': ['-start', '-end']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='satellite',
|
||||
options={'ordering': ['norad_cat_id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='station',
|
||||
options={'ordering': ['-active', '-last_seen']},
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='station',
|
||||
name='online',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='active',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='last_seen',
|
||||
field=models.DateTimeField(null=True, blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle0',
|
||||
field=models.CharField(default='', max_length=100, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle1',
|
||||
field=models.CharField(default='', max_length=200, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle2',
|
||||
field=models.CharField(default='', max_length=200, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='updated',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='antenna',
|
||||
field=models.ManyToManyField(help_text=b'If you want to add a new Antenna contact SatNOGS Team', to=b'base.Antenna', blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='location',
|
||||
field=models.CharField(default='', max_length=255, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='qthlocator',
|
||||
field=models.CharField(default='', max_length=255, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
|
@ -1,52 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='owner',
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='author',
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='satellite',
|
||||
field=models.ForeignKey(to='base.Satellite'),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='transponder',
|
||||
field=models.ForeignKey(to='base.Transponder', null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='ground_station',
|
||||
field=models.ForeignKey(to='base.Station'),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='data',
|
||||
name='observation',
|
||||
field=models.ForeignKey(to='base.Observation'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,19 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0001_squashed_0017_auto_20150509_0912'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='created',
|
||||
field=models.DateTimeField(auto_now_add=True),
|
||||
),
|
||||
]
|
|
@ -1,19 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0002_auto_20141015_0800'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='alive',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
]
|
|
@ -1,38 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import shortuuidfield.fields
|
||||
import django.core.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0002_auto_20150622_0035'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Transmitter',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('uuid', shortuuidfield.fields.ShortUUIDField(db_index=True, max_length=22, editable=False, blank=True)),
|
||||
('description', models.TextField()),
|
||||
('alive', models.BooleanField(default=True)),
|
||||
('uplink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('uplink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_low', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('downlink_high', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('mode', models.CharField(blank=True, max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'BFSK', b'BFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN'), (b'SSTV', b'SSTV'), (b'GMSK', b'GMSK'), (b'SSB', b'SSB')])),
|
||||
('invert', models.BooleanField(default=False)),
|
||||
('baud', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)])),
|
||||
('satellite', models.ForeignKey(related_name='transmitters', to='base.Satellite', null=True)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='observation',
|
||||
name='transmitter',
|
||||
field=models.ForeignKey(to='base.Transmitter', null=True),
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.core.management import call_command
|
||||
|
||||
|
||||
def rename_transponders(apps, schema_editor):
|
||||
call_command('fetch_data')
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0003_auto_20150723_1416'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(rename_transponders),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0003_auto_20141016_0506'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle',
|
||||
field=models.CharField(max_length=500, null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,27 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
def mv_observations(apps, schema_editor):
|
||||
Observation = apps.get_model("base", "Observation")
|
||||
Transmitter = apps.get_model("base", "Transmitter")
|
||||
for obj in Observation.objects.all():
|
||||
try:
|
||||
transmitter = Transmitter.objects.get(uuid=obj.transponder.uuid)
|
||||
obj.transmitter = transmitter
|
||||
obj.save()
|
||||
except Transmitter.DoesNotExist:
|
||||
pass
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0004_auto_20150723_1412'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(mv_observations),
|
||||
]
|
|
@ -1,21 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.utils.timezone import now
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0004_satellite_tle'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='updated',
|
||||
field=models.DateTimeField(default=now(), auto_now_add=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
|
@ -1,36 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0005_satellite_updated'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='satellite',
|
||||
name='tle',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle0',
|
||||
field=models.CharField(max_length=100, null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle1',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='tle2',
|
||||
field=models.CharField(max_length=200, null=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,30 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0005_auto_20150723_1432'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='transponder',
|
||||
name='satellite',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='observation',
|
||||
name='transponder',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='observation',
|
||||
name='transmitter',
|
||||
field=models.ForeignKey(related_name='observations', to='base.Transmitter', null=True),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='Transponder',
|
||||
),
|
||||
]
|
|
@ -1,19 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0006_auto_20141025_2010'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='data',
|
||||
name='payload',
|
||||
field=models.FileField(null=True, upload_to=b'data_payloads'),
|
||||
),
|
||||
]
|
|
@ -1,35 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0006_auto_20150723_1504'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Mode',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('name', models.CharField(unique=True, max_length=10)),
|
||||
],
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='transmitter',
|
||||
name='mode',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='image',
|
||||
field=models.ImageField(upload_to=b'satellites', blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='satellite',
|
||||
name='names',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0007_auto_20141027_0000'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='data',
|
||||
name='payload',
|
||||
field=models.FileField(null=True, upload_to=b'data_payloads', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0007_auto_20150814_1341'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='transmitter',
|
||||
name='mode',
|
||||
field=models.ForeignKey(related_name='transmitters', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='base.Mode', null=True),
|
||||
),
|
||||
]
|
|
@ -1,44 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0008_auto_20141027_0113'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='downlink_high',
|
||||
field=models.PositiveIntegerField(null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='downlink_low',
|
||||
field=models.PositiveIntegerField(null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='mode',
|
||||
field=models.CharField(max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'BFSK', b'BFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN')]),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='uplink_high',
|
||||
field=models.PositiveIntegerField(null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='uplink_low',
|
||||
field=models.PositiveIntegerField(null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0009_auto_20141027_1522'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='location',
|
||||
field=models.CharField(max_length=255, null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,21 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
from django.utils.timezone import now
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0010_station_location'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='created',
|
||||
field=models.DateTimeField(default=now(), auto_now_add=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
|
@ -1,32 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0011_station_created'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='online',
|
||||
field=models.BooleanField(default=False, help_text=b'Is your Ground Station functional?'),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='alt',
|
||||
field=models.PositiveIntegerField(help_text=b'In meters above ground'),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='antenna',
|
||||
field=models.ManyToManyField(help_text=b'If you want to add a new Antenna contact SatNOGS Team', to='base.Antenna', null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,18 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0012_auto_20141203_1805'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='station',
|
||||
name='featured',
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0013_remove_station_featured'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='image',
|
||||
field=models.ImageField(upload_to=b'ground_stations', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,20 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0014_auto_20150209_0846'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='qthlocator',
|
||||
field=models.CharField(max_length=255, null=True, blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -1,95 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import django.core.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0015_station_qthlocator'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='data',
|
||||
options={'ordering': ['-start', '-end']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='observation',
|
||||
options={'ordering': ['-start', '-end']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='satellite',
|
||||
options={'ordering': ['norad_cat_id']},
|
||||
),
|
||||
migrations.AlterModelOptions(
|
||||
name='station',
|
||||
options={'ordering': ['-active', '-last_seen']},
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='station',
|
||||
name='online',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='active',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='station',
|
||||
name='last_seen',
|
||||
field=models.DateTimeField(null=True, blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle0',
|
||||
field=models.CharField(default='', max_length=100, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle1',
|
||||
field=models.CharField(default='', max_length=200, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='tle2',
|
||||
field=models.CharField(default='', max_length=200, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='satellite',
|
||||
name='updated',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='antenna',
|
||||
field=models.ManyToManyField(help_text=b'If you want to add a new Antenna contact SatNOGS Team', to='base.Antenna', blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='location',
|
||||
field=models.CharField(default='', max_length=255, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='station',
|
||||
name='qthlocator',
|
||||
field=models.CharField(default='', max_length=255, blank=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='baud',
|
||||
field=models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='mode',
|
||||
field=models.CharField(blank=True, max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'BFSK', b'BFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN')]),
|
||||
),
|
||||
]
|
|
@ -1,25 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import shortuuidfield.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('base', '0016_auto_20150506_1002'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='transponder',
|
||||
name='uuid',
|
||||
field=shortuuidfield.fields.ShortUUIDField(db_index=True, max_length=22, editable=False, blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='transponder',
|
||||
name='mode',
|
||||
field=models.CharField(blank=True, max_length=10, choices=[(b'FM', b'FM'), (b'AFSK', b'AFSK'), (b'BFSK', b'BFSK'), (b'APRS', b'APRS'), (b'SSTV', b'SSTV'), (b'CW', b'CW'), (b'FMN', b'FMN'), (b'SSTV', b'SSTV'), (b'GMSK', b'GMSK'), (b'SSB', b'SSB')]),
|
||||
),
|
||||
]
|
|
@ -1,41 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import django.utils.timezone
|
||||
import django.core.validators
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('auth', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='User',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
||||
('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),
|
||||
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
||||
('username', models.CharField(help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', unique=True, max_length=30, verbose_name='username', validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username.', 'invalid')])),
|
||||
('first_name', models.CharField(max_length=30, verbose_name='first name', blank=True)),
|
||||
('last_name', models.CharField(max_length=30, verbose_name='last name', blank=True)),
|
||||
('email', models.EmailField(max_length=75, verbose_name='email address', blank=True)),
|
||||
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
|
||||
('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
|
||||
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
|
||||
('bio', models.TextField(default=b'', validators=[django.core.validators.MaxLengthValidator(1000)])),
|
||||
('groups', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of his/her group.', verbose_name='groups')),
|
||||
('user_permissions', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Permission', blank=True, help_text='Specific permissions for this user.', verbose_name='user permissions')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
'verbose_name': 'user',
|
||||
'verbose_name_plural': 'users',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
|
@ -9,8 +9,6 @@ import django.core.validators
|
|||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [(b'users', '0001_initial'), (b'users', '0002_auto_20150415_1141')]
|
||||
|
||||
dependencies = [
|
||||
('auth', '0001_initial'),
|
||||
]
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import django.core.validators
|
||||
import django.contrib.auth.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelManagers(
|
||||
name='user',
|
||||
managers=[
|
||||
(b'objects', django.contrib.auth.models.UserManager()),
|
||||
],
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='email',
|
||||
field=models.EmailField(max_length=254, verbose_name='email address', blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='groups',
|
||||
field=models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='last_login',
|
||||
field=models.DateTimeField(null=True, verbose_name='last login', blank=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='username',
|
||||
field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, max_length=30, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')], help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', unique=True, verbose_name='username'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue