mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Initial commit
This commit is contained in:
37
dcc/roster/migrations/0001_initial.py
Normal file
37
dcc/roster/migrations/0001_initial.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:16
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import uuid
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Manufacturer',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128, unique=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Cab',
|
||||
fields=[
|
||||
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('identifier', models.CharField(max_length=128)),
|
||||
('address', models.SmallIntegerField(default=3)),
|
||||
('creation_time', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_time', models.DateTimeField(auto_now=True)),
|
||||
('manufacturer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='roster.manufacturer')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['address', 'identifier'],
|
||||
},
|
||||
),
|
||||
]
|
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:24
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='notes',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='production_date',
|
||||
field=models.SmallIntegerField(null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='production_year',
|
||||
field=models.SmallIntegerField(null=True),
|
||||
),
|
||||
]
|
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:27
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0002_cab_notes_cab_production_date_cab_production_year'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='cab',
|
||||
name='production_date',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='purchase_date',
|
||||
field=models.DateField(null=True),
|
||||
),
|
||||
]
|
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:28
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0003_remove_cab_production_date_cab_purchase_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='manufacturer',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='roster.manufacturer'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='production_year',
|
||||
field=models.SmallIntegerField(blank=True, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='purchase_date',
|
||||
field=models.DateField(blank=True, null=True),
|
||||
),
|
||||
]
|
19
dcc/roster/migrations/0005_alter_cab_manufacturer.py
Normal file
19
dcc/roster/migrations/0005_alter_cab_manufacturer.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:29
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0004_alter_cab_manufacturer_alter_cab_production_year_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='manufacturer',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='roster.manufacturer'),
|
||||
),
|
||||
]
|
18
dcc/roster/migrations/0006_cab_image.py
Normal file
18
dcc/roster/migrations/0006_cab_image.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0005_alter_cab_manufacturer'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='image',
|
||||
field=models.ImageField(blank=True, upload_to=''),
|
||||
),
|
||||
]
|
18
dcc/roster/migrations/0007_alter_cab_image.py
Normal file
18
dcc/roster/migrations/0007_alter_cab_image.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 22:43
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0006_cab_image'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='image',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='images/'),
|
||||
),
|
||||
]
|
18
dcc/roster/migrations/0008_cab_epoch.py
Normal file
18
dcc/roster/migrations/0008_cab_epoch.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0 on 2021-12-15 23:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0007_alter_cab_image'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='epoch',
|
||||
field=models.CharField(blank=True, max_length=32),
|
||||
),
|
||||
]
|
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.0 on 2021-12-16 09:11
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0008_cab_epoch'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='decoder_manufacturer',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_decoder', to='roster.manufacturer'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='decoder_model',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='manufacturer',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='%(class)s_manufacturer', to='roster.manufacturer'),
|
||||
),
|
||||
]
|
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 4.0 on 2021-12-16 09:15
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0009_cab_decoder_manufacturer_cab_decoder_model_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='cab',
|
||||
name='decoder_manufacturer',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='cab',
|
||||
name='manufacturer',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='roster.manufacturer'),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Decoder',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128, unique=True)),
|
||||
('manufacturer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='roster.manufacturer')),
|
||||
],
|
||||
),
|
||||
]
|
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.0 on 2021-12-16 09:18
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0010_remove_cab_decoder_manufacturer_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='cab',
|
||||
name='decoder_model',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='decoder',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='roster.decoder'),
|
||||
),
|
||||
]
|
0
dcc/roster/migrations/__init__.py
Normal file
0
dcc/roster/migrations/__init__.py
Normal file
Reference in New Issue
Block a user