mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-05-13 03:11:55 -04:00
add migrations to work with v1
This commit is contained in:
23
app/backend/wol/migrations/0001_initial.py
Normal file
23
app/backend/wol/migrations/0001_initial.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-15 19:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Device',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.SlugField(max_length=100)),
|
||||
('ip', models.GenericIPAddressField()),
|
||||
('mac', models.SlugField(max_length=17)),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0002_auto_20201115_2043.py
Normal file
18
app/backend/wol/migrations/0002_auto_20201115_2043.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-15 19:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='device',
|
||||
name='mac',
|
||||
field=models.CharField(max_length=17),
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0003_device_status.py
Normal file
18
app/backend/wol/migrations/0003_device_status.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-15 22:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0002_auto_20201115_2043'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='device',
|
||||
name='status',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
17
app/backend/wol/migrations/0004_remove_device_status.py
Normal file
17
app/backend/wol/migrations/0004_remove_device_status.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-16 02:50
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0003_device_status'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='device',
|
||||
name='status',
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0005_device_netmask.py
Normal file
18
app/backend/wol/migrations/0005_device_netmask.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.5 on 2021-01-18 16:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0004_remove_device_status'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='device',
|
||||
name='netmask',
|
||||
field=models.CharField(default='255.255.255.0', max_length=15),
|
||||
),
|
||||
]
|
||||
20
app/backend/wol/migrations/0006_websocket.py
Normal file
20
app/backend/wol/migrations/0006_websocket.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-22 20:02
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0005_device_netmask'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Websocket',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('visitors', models.PositiveSmallIntegerField(default=0)),
|
||||
],
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0007_device_scheduled_wake.py
Normal file
18
app/backend/wol/migrations/0007_device_scheduled_wake.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-23 16:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0006_websocket'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='device',
|
||||
name='scheduled_wake',
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
23
app/backend/wol/migrations/0008_settings.py
Normal file
23
app/backend/wol/migrations/0008_settings.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-27 16:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0007_device_scheduled_wake'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Settings',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('ping_interval', models.PositiveSmallIntegerField(default=5)),
|
||||
('enable_notifications', models.BooleanField(default=True)),
|
||||
('enable_console_logging', models.BooleanField(default=True)),
|
||||
('sort_by', models.SlugField(default='name')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-27 19:05
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0008_settings'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='settings',
|
||||
name='ping_interval',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-28 19:00
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0009_remove_settings_ping_interval'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='settings',
|
||||
name='enable_console_logging',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0011_settings_scan_address.py
Normal file
18
app/backend/wol/migrations/0011_settings_scan_address.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-28 20:19
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0010_alter_settings_enable_console_logging'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='settings',
|
||||
name='scan_address',
|
||||
field=models.GenericIPAddressField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
18
app/backend/wol/migrations/0012_alter_device_name.py
Normal file
18
app/backend/wol/migrations/0012_alter_device_name.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-28 23:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0011_settings_scan_address'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='device',
|
||||
name='name',
|
||||
field=models.SlugField(default='Unknown', max_length=100),
|
||||
),
|
||||
]
|
||||
64
app/backend/wol/migrations/0013_auto_20220312_1005.py
Normal file
64
app/backend/wol/migrations/0013_auto_20220312_1005.py
Normal file
@@ -0,0 +1,64 @@
|
||||
# Generated by Django 3.2.12 on 2022-03-12 10:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wol', '0012_alter_device_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Port',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('number', models.PositiveIntegerField()),
|
||||
('name', models.SlugField()),
|
||||
],
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='settings',
|
||||
old_name='enable_notifications',
|
||||
new_name='notifications',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='device',
|
||||
name='scheduled_wake',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='settings',
|
||||
name='enable_console_logging',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='device',
|
||||
name='shutdown_cmd',
|
||||
field=models.TextField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='settings',
|
||||
name='interval',
|
||||
field=models.PositiveSmallIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='device',
|
||||
name='id',
|
||||
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='settings',
|
||||
name='id',
|
||||
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='websocket',
|
||||
name='id',
|
||||
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='device',
|
||||
name='port',
|
||||
field=models.ManyToManyField(blank=True, to='wol.Port'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user