drbotzo-idlerpg/idlerpg/migrations/0002_character_player_must_have_unique_character_names.py
Brian S. Stephan 34aa91ad9e
add unique constraint on name + hostmask
I'm thinking that the command to log out will be LOGOUT <name>, which
means the user hostmask must have an unambiguous link to name

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-10 13:37:17 -05:00

18 lines
439 B
Python

# Generated by Django 5.0.5 on 2024-05-10 18:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('idlerpg', '0001_initial'),
]
operations = [
migrations.AddConstraint(
model_name='character',
constraint=models.UniqueConstraint(models.F('name'), models.F('hostmask'), name='player_must_have_unique_character_names'),
),
]