squash migrations
This commit is contained in:
parent
09eb057392
commit
4117bb4446
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-11 06:15
|
||||
# Generated by Django 3.1.4 on 2020-12-12 09:13
|
||||
|
||||
import django.core.files.storage
|
||||
from django.db import migrations, models
|
||||
|
@ -41,6 +41,23 @@ class Migration(migrations.Migration):
|
|||
'verbose_name_plural': 'Sources',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='MediaServer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('server_type', models.CharField(choices=[('p', 'Plex')], db_index=True, default='p', help_text='Server type', max_length=1, verbose_name='server type')),
|
||||
('host', models.CharField(db_index=True, help_text='Hostname or IP address of the media server', max_length=200, verbose_name='host')),
|
||||
('port', models.PositiveIntegerField(db_index=True, help_text='Port number of the media server', verbose_name='port')),
|
||||
('use_https', models.BooleanField(default=True, help_text='Connect to the media server over HTTPS', verbose_name='use https')),
|
||||
('verify_https', models.BooleanField(default=False, help_text='If connecting over HTTPS, verify the SSL certificate is valid', verbose_name='verify https')),
|
||||
('options', models.TextField(blank=True, help_text='JSON encoded options for the media server', null=True, verbose_name='options')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Media Server',
|
||||
'verbose_name_plural': 'Media Servers',
|
||||
'unique_together': {('host', 'port')},
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Media',
|
||||
fields=[
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-11 09:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='MediaServer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('host', models.CharField(help_text='Hostname or IP address of the media server', max_length=200, verbose_name='host')),
|
||||
('port', models.PositiveIntegerField(help_text='Port number of the media server', verbose_name='port')),
|
||||
('https', models.BooleanField(default=False, help_text='Connect to the media server over HTTPS', verbose_name='https')),
|
||||
('options', models.TextField(blank=True, help_text='JSON encoded options for the media server', null=True, verbose_name='options')),
|
||||
('valid', models.BooleanField(default=False, help_text='Media server details are valid and passed testing', verbose_name='valid')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Media Server',
|
||||
'verbose_name_plural': 'Media Servers',
|
||||
'unique_together': {('host', 'port')},
|
||||
},
|
||||
),
|
||||
]
|
|
@ -1,23 +0,0 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-11 09:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0002_mediaserver'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='mediaserver',
|
||||
name='host',
|
||||
field=models.CharField(db_index=True, help_text='Hostname or IP address of the media server', max_length=200, verbose_name='host'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='mediaserver',
|
||||
name='port',
|
||||
field=models.PositiveIntegerField(db_index=True, help_text='Port number of the media server', verbose_name='port'),
|
||||
),
|
||||
]
|
|
@ -1,18 +0,0 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-11 10:01
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0003_auto_20201211_0954'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mediaserver',
|
||||
name='server_type',
|
||||
field=models.CharField(choices=[('p', 'Plex')], db_index=True, default='p', help_text='Server type', max_length=1, verbose_name='server type'),
|
||||
),
|
||||
]
|
|
@ -1,17 +0,0 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-11 10:12
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0004_mediaserver_server_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='mediaserver',
|
||||
name='valid',
|
||||
),
|
||||
]
|
|
@ -1,27 +0,0 @@
|
|||
# Generated by Django 3.1.4 on 2020-12-12 03:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('sync', '0005_remove_mediaserver_valid'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='mediaserver',
|
||||
name='https',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mediaserver',
|
||||
name='use_https',
|
||||
field=models.BooleanField(default=True, help_text='Connect to the media server over HTTPS', verbose_name='use https'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mediaserver',
|
||||
name='verify_https',
|
||||
field=models.BooleanField(default=False, help_text='If connecting over HTTPS, verify the SSL certificate is valid', verbose_name='verify https'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue