# Generated by Django 5.1.5 on 2025-03-20 05:19

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0019_alter_ticketlinkeditem_unique_together'),
        ('devops', '0002_gitrepository_gitgroup_githubrepository_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='GitHubHistory',
            fields=[
                ('modelhistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.modelhistory')),
                ('model', models.ForeignKey(help_text='Model this note belongs to', on_delete=django.db.models.deletion.CASCADE, related_name='history', to='devops.githubrepository', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'GitHub Repository History',
                'verbose_name_plural': 'GitHub Repository History',
                'db_table': 'devops_github_repository_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='GitlabHistory',
            fields=[
                ('modelhistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.modelhistory')),
                ('model', models.ForeignKey(help_text='Model this note belongs to', on_delete=django.db.models.deletion.CASCADE, related_name='history', to='devops.gitlabrepository', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'GitLab Repository History',
                'verbose_name_plural': 'GitLab Repository History',
                'db_table': 'devops_gitlab_repository_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
    ]
