Skip to content

Commit

Permalink
chore: Add absent iesg 0001_initial.py migration (#5336)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jennifer-richards authored Mar 16, 2023
1 parent cf755d2 commit ab63eb0
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
51 changes: 51 additions & 0 deletions ietf/iesg/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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 changes: 17 additions & 0 deletions ietf/iesg/migrations/0002_auto_20230314_0912.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
Empty file.

0 comments on commit ab63eb0

Please sign in to comment.