gitea-migrator/migrator/migrations/0001_initial.py

35 lines
1.3 KiB
Python
Raw Permalink Normal View History

2020-08-03 22:05:16 +02:00
# Generated by Django 3.0.8 on 2020-08-01 15:33
from django.db import migrations, models
import django.db.models.deletion
import migrator.models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Migration',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('gitlab_token', models.CharField(max_length=200)),
('gitea_token', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='Repository',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('path_with_namespace', models.CharField(max_length=200)),
('result', models.PositiveIntegerField(choices=[(migrator.models.Status['PENDING'], 1), (migrator.models.Status['SUCCESS'], 2), (migrator.models.Status['EXISTS'], 3), (migrator.models.Status['ERROR'], 4)], default=migrator.models.Status['PENDING'])),
('migration', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='repositories', to='migrator.Migration')),
],
),
]