oncall-engine/engine/apps/schedules/migrations/0002_squashed_initial.py
Michael Derynck 6b40f95033 World, meet OnCall!
Co-authored-by: Eve832 <eve.meelan@grafana.com>
    Co-authored-by: Francisco Montes de Oca <nevermind89x@gmail.com>
    Co-authored-by: Ildar Iskhakov <ildar.iskhakov@grafana.com>
    Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
    Co-authored-by: Julia <ferril.darkdiver@gmail.com>
    Co-authored-by: maskin25 <kengurek@gmail.com>
    Co-authored-by: Matias Bordese <mbordese@gmail.com>
    Co-authored-by: Matvey Kukuy <motakuk@gmail.com>
    Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
    Co-authored-by: Richard Hartmann <richih@richih.org>
    Co-authored-by: Robby Milo <robbymilo@fastmail.com>
    Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
    Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
    Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2022-06-03 08:09:47 -06:00

67 lines
2.8 KiB
Python

# Generated by Django 3.2.5 on 2022-05-31 14:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user_management', '0001_squashed_initial'),
('slack', '0002_squashed_initial'),
('contenttypes', '0002_remove_content_type_name'),
('schedules', '0001_squashed_initial'),
]
operations = [
migrations.AddField(
model_name='oncallschedule',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='oncall_schedules', to='user_management.organization'),
),
migrations.AddField(
model_name='oncallschedule',
name='polymorphic_ctype',
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_schedules.oncallschedule_set+', to='contenttypes.contenttype'),
),
migrations.AddField(
model_name='oncallschedule',
name='team',
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='oncall_schedules', to='user_management.team'),
),
migrations.AddField(
model_name='oncallschedule',
name='user_group',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='oncall_schedules', to='slack.slackusergroup'),
),
migrations.AddField(
model_name='customoncallshift',
name='organization',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='custom_on_call_shifts', to='user_management.organization'),
),
migrations.AddField(
model_name='customoncallshift',
name='team',
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='custom_on_call_shifts', to='user_management.team'),
),
migrations.AddField(
model_name='customoncallshift',
name='users',
field=models.ManyToManyField(to='user_management.User'),
),
migrations.AddField(
model_name='oncallschedulecalendar',
name='custom_on_call_shifts',
field=models.ManyToManyField(related_name='schedules', to='schedules.CustomOnCallShift'),
),
migrations.AlterUniqueTogether(
name='oncallschedule',
unique_together={('name', 'organization')},
),
migrations.AlterUniqueTogether(
name='customoncallshift',
unique_together={('name', 'organization')},
),
]