Skip to content

Commit

Permalink
revert migration hack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eladyaniv01 committed Feb 6, 2021
1 parent d26c0aa commit 3734ce7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions aiarena/core/migrations/0023_matchtags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ class Migration(migrations.Migration):
('core', '0022_auto_20210205_0519'),
]

# operations = [
# migrations.CreateModel(
# name='Tag',
# fields=[
# ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
# ('name', models.CharField(max_length=32, unique=True)),
# ],
# ),
# migrations.CreateModel(
# name='MatchTag',
# fields=[
# ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
# ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Tag')),
# ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
# ],
# ),
# migrations.AddField(
# model_name='match',
# name='tags',
# field=models.ManyToManyField(to='core.MatchTag'),
# ),
# ]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=32, unique=True)),
],
),
migrations.CreateModel(
name='MatchTag',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Tag')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='match',
name='tags',
field=models.ManyToManyField(to='core.MatchTag'),
),
]

0 comments on commit 3734ce7

Please sign in to comment.