Files
backend/game/migrations/0002_auto_20201106_0225.py
Michel Wilhelm 8bcc4e4373
Some checks failed
Creates a docker image for production / Deploy (push) Has been cancelled
Creates a docker image for production / Build the docker image (push) Has been cancelled
Build / Code quality (push) Has been cancelled
Problemas resolvidos
2025-02-05 10:04:42 -03:00

64 lines
1.9 KiB
Python

# Generated by Django 3.1.3 on 2020-11-06 02:25
from django.db import migrations, models
import game.models
import internal.utils
class Migration(migrations.Migration):
dependencies = [
('game', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='game',
name='status',
field=models.IntegerField(
choices=[(0, 'NOT_PLAYED'), (1, 'PLAYING'), (2, 'FINISHED')],
default=game.models.GameStatuses['NOT_PLAYED'],
help_text='Actual game status',
),
),
migrations.AddField(
model_name='game',
name='win',
field=models.BooleanField(
blank=True,
default=None,
help_text='Did the user win the game?',
null=True,
verbose_name='Win?',
),
),
migrations.AlterField(
model_name='game',
name='board',
field=models.JSONField(
default=internal.utils.empty_list,
help_text='Whe generated board game',
verbose_name='Generated board',
),
),
migrations.AlterField(
model_name='game',
name='cols',
field=models.PositiveIntegerField(default=10, help_text="Board's total columns", verbose_name='Board cols'),
),
migrations.AlterField(
model_name='game',
name='mines',
field=models.PositiveIntegerField(
default=5,
help_text="Board's total placed mines",
verbose_name='Mines on board',
),
),
migrations.AlterField(
model_name='game',
name='rows',
field=models.PositiveIntegerField(default=10, help_text="Board's total rows", verbose_name='Board rows'),
),
]