chore: Add absent iesg 0001_initial.py migration (#5336)
* chore: Add absent iesg 0001_initial.py migration * chore: Remove index from 0001_initial.py to match production db schema * chore: Add migration to create index on TelechatDate.date * chore: Add __init__.py to ietf/iesg/migrations/ * chore: Add type annotation to satisfy linter
This commit is contained in:
parent
cf755d2516
commit
ab63eb0f48
51
ietf/iesg/migrations/0001_initial.py
Normal file
51
ietf/iesg/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,51 @@
|
|||
# Generated by Django 2.2.28 on 2023-03-14 16:10
|
||||
|
||||
from typing import List, Tuple
|
||||
from django.db import migrations, models
|
||||
import ietf.iesg.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies: List[Tuple[str]] = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Telechat',
|
||||
fields=[
|
||||
('telechat_id', models.IntegerField(primary_key=True, serialize=False)),
|
||||
('telechat_date', models.DateField(blank=True, null=True)),
|
||||
('minute_approved', models.IntegerField(blank=True, null=True)),
|
||||
('wg_news_txt', models.TextField(blank=True)),
|
||||
('iab_news_txt', models.TextField(blank=True)),
|
||||
('management_issue', models.TextField(blank=True)),
|
||||
('frozen', models.IntegerField(blank=True, null=True)),
|
||||
('mi_frozen', models.IntegerField(blank=True, null=True)),
|
||||
],
|
||||
options={
|
||||
'db_table': 'telechat',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='TelechatAgendaItem',
|
||||
fields=[
|
||||
('id', models.AutoField(db_column='template_id', primary_key=True, serialize=False)),
|
||||
('text', models.TextField(blank=True, db_column='template_text')),
|
||||
('type', models.IntegerField(choices=[(1, 'Any Other Business (WG News, New Proposals, etc.)'), (2, 'IAB News'), (3, 'Management Item')], db_column='template_type', default=3)),
|
||||
('title', models.CharField(db_column='template_title', max_length=255)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='TelechatDate',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('date', models.DateField(default=ietf.iesg.models.next_telechat_date)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['-date'],
|
||||
},
|
||||
),
|
||||
]
|
17
ietf/iesg/migrations/0002_auto_20230314_0912.py
Normal file
17
ietf/iesg/migrations/0002_auto_20230314_0912.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 2.2.28 on 2023-03-14 16:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('iesg', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name='telechatdate',
|
||||
index=models.Index(fields=['-date'], name='iesg_telech_date_a0e0ed_idx'),
|
||||
),
|
||||
]
|
0
ietf/iesg/migrations/__init__.py
Normal file
0
ietf/iesg/migrations/__init__.py
Normal file
Loading…
Reference in a new issue