-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
cf755d2
commit ab63eb0
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'], | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.