a prior commit made this determination for now, for simplicity's sake (and also what are the odds of running two games at once on the same codebase), but it was'n really enforced until now Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
19 lines
571 B
Python
19 lines
571 B
Python
# Generated by Django 5.0.5 on 2024-05-18 14:41
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('idlerpg', '0007_remove_character_one_player_character_per_game_and_more'),
|
|
('ircbot', '0020_alter_alias_id_alter_botuser_id_alter_ircchannel_id_and_more'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddConstraint(
|
|
model_name='game',
|
|
constraint=models.UniqueConstraint(models.F('active'), condition=models.Q(('active', True)), name='one_enabled_at_a_time'),
|
|
),
|
|
]
|