Skip to content

Commit

Permalink
Added default color code for very_easy_color and reset migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandika-A committed Oct 9, 2023
1 parent f6e24db commit f0d4caa
Show file tree
Hide file tree
Showing 42 changed files with 967 additions and 0 deletions.
52 changes: 52 additions & 0 deletions project/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Generated by Django 3.2.7 on 2021-09-12 10:11

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


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Issue',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200, verbose_name='Title')),
('url', models.URLField(verbose_name='URL')),
('level', models.PositiveSmallIntegerField(choices=[(1, 'Easy'), (2, 'Medium'), (3, 'Difficult')], default=1, verbose_name='Level')),
('points', models.IntegerField(default=0, verbose_name='Points')),
('state', models.PositiveSmallIntegerField(choices=[(1, 'Open'), (2, 'Closed')], default=1, verbose_name='State')),
('mentor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='Project',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, verbose_name='Name')),
('url', models.URLField(verbose_name='URL')),
],
),
migrations.CreateModel(
name='PullRequest',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.URLField(verbose_name='URL')),
('state', models.PositiveSmallIntegerField(choices=[(1, 'Pending Verification'), (2, 'Accepted'), (3, 'Rejected')], verbose_name='State')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.issue')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='issue',
name='project',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.project'),
),
]
62 changes: 62 additions & 0 deletions project/migrations/0002_auto_20210912_1633.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Generated by Django 3.2.7 on 2021-09-12 11:03

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

dependencies = [
('project', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='issue',
name='url',
),
migrations.RemoveField(
model_name='project',
name='url',
),
migrations.RemoveField(
model_name='pullrequest',
name='url',
),
migrations.AddField(
model_name='issue',
name='api_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='API URL'),
preserve_default=False,
),
migrations.AddField(
model_name='issue',
name='html_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='HTML URL'),
preserve_default=False,
),
migrations.AddField(
model_name='project',
name='api_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='API URL'),
preserve_default=False,
),
migrations.AddField(
model_name='project',
name='html_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='HTML URL'),
preserve_default=False,
),
migrations.AddField(
model_name='pullrequest',
name='api_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='API URL'),
preserve_default=False,
),
migrations.AddField(
model_name='pullrequest',
name='html_url',
field=models.URLField(default=django.utils.timezone.now, verbose_name='HTML URL'),
preserve_default=False,
),
]
24 changes: 24 additions & 0 deletions project/migrations/0003_assignedissue.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 3.2.7 on 2021-09-12 17:49

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


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project', '0002_auto_20210912_1633'),
]

operations = [
migrations.CreateModel(
name='AssignedIssue',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('assignee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.issue')),
],
),
]
34 changes: 34 additions & 0 deletions project/migrations/0004_auto_20210912_2357.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by Django 3.2.7 on 2021-09-12 18:27

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


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project', '0003_assignedissue'),
]

operations = [
migrations.AddField(
model_name='issue',
name='assignee',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='assignee', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='issue',
name='mentor',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='mentor', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='issue',
name='state',
field=models.PositiveSmallIntegerField(choices=[(1, 'Open'), (2, 'Assigned'), (3, 'Closed')], default=1, verbose_name='State'),
),
migrations.DeleteModel(
name='AssignedIssue',
),
]
18 changes: 18 additions & 0 deletions project/migrations/0005_issue_number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-12 18:32

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0004_auto_20210912_2357'),
]

operations = [
migrations.AddField(
model_name='issue',
name='number',
field=models.IntegerField(default=0, verbose_name='Number'),
),
]
18 changes: 18 additions & 0 deletions project/migrations/0006_alter_issue_level.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-13 06:18

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0005_issue_number'),
]

operations = [
migrations.AlterField(
model_name='issue',
name='level',
field=models.PositiveSmallIntegerField(choices=[(0, 'Free'), (1, 'Easy'), (2, 'Medium'), (3, 'Difficult')], default=1, verbose_name='Level'),
),
]
18 changes: 18 additions & 0 deletions project/migrations/0007_alter_pullrequest_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-13 08:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0006_alter_issue_level'),
]

operations = [
migrations.AlterField(
model_name='pullrequest',
name='state',
field=models.PositiveSmallIntegerField(choices=[(1, 'Accepted'), (2, 'Rejected'), (3, 'Pending Verification')], default=3, verbose_name='State'),
),
]
18 changes: 18 additions & 0 deletions project/migrations/0008_issue_is_restricted.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-13 16:27

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0007_alter_pullrequest_state'),
]

operations = [
migrations.AddField(
model_name='issue',
name='is_restricted',
field=models.BooleanField(default=False, verbose_name='Is Restricted'),
),
]
25 changes: 25 additions & 0 deletions project/migrations/0009_issueassignment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 3.2.7 on 2021-09-13 16:50

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


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project', '0008_issue_is_restricted'),
]

operations = [
migrations.CreateModel(
name='IssueAssignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('state', models.PositiveSmallIntegerField(choices=[(1, 'Accepted'), (2, 'Rejected'), (3, 'Pending Verification')], default=3, verbose_name='State')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.issue')),
('requester', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]
18 changes: 18 additions & 0 deletions project/migrations/0010_issueassignment_decided_at.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-14 09:21

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0009_issueassignment'),
]

operations = [
migrations.AddField(
model_name='issueassignment',
name='decided_at',
field=models.DateTimeField(blank=True, null=True, verbose_name='Decided At'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.2.7 on 2021-09-14 09:41

from django.conf import settings
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project', '0010_issueassignment_decided_at'),
]

operations = [
migrations.RenameModel(
old_name='IssueAssignment',
new_name='IssueAssignmentRequest',
),
]
29 changes: 29 additions & 0 deletions project/migrations/0012_auto_20210914_1521.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 3.2.7 on 2021-09-14 09:51

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


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('project', '0011_rename_issueassignment_issueassignmentrequest'),
]

operations = [
migrations.RemoveField(
model_name='issueassignmentrequest',
name='decided_at',
),
migrations.CreateModel(
name='ActiveIssue',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('assigned_at', models.DateTimeField(blank=True, null=True, verbose_name='Decided At')),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.issue')),
],
),
]
19 changes: 19 additions & 0 deletions project/migrations/0013_alter_activeissue_assigned_at.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.2.7 on 2021-09-14 12:42

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

dependencies = [
('project', '0012_auto_20210914_1521'),
]

operations = [
migrations.AlterField(
model_name='activeissue',
name='assigned_at',
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Decided At'),
),
]
22 changes: 22 additions & 0 deletions project/migrations/0014_auto_20210914_1836.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 3.2.7 on 2021-09-14 13:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('project', '0013_alter_activeissue_assigned_at'),
]

operations = [
migrations.RemoveField(
model_name='issue',
name='assignee',
),
migrations.AlterField(
model_name='issue',
name='state',
field=models.PositiveSmallIntegerField(choices=[(1, 'Open'), (3, 'Closed')], default=1, verbose_name='State'),
),
]
Loading

0 comments on commit f0d4caa

Please sign in to comment.