version bumps and migration to django 2.2
This commit is contained in:
@@ -27,7 +27,7 @@ class Migration(migrations.Migration):
|
||||
('k2', models.CharField(max_length=128)),
|
||||
('v', models.CharField(max_length=128)),
|
||||
('count', models.IntegerField(default=0)),
|
||||
('context', models.ForeignKey(to='markov.MarkovContext')),
|
||||
('context', models.ForeignKey(to='markov.MarkovContext', on_delete=models.CASCADE)),
|
||||
],
|
||||
options={
|
||||
'permissions': set([('teach_line', 'Can teach lines'), ('import_log_file', 'Can import states from a log file')]),
|
||||
@@ -40,7 +40,7 @@ class Migration(migrations.Migration):
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('name', models.CharField(unique=True, max_length=64)),
|
||||
('chatter_chance', models.IntegerField(default=0)),
|
||||
('context', models.ForeignKey(to='markov.MarkovContext')),
|
||||
('context', models.ForeignKey(to='markov.MarkovContext', on_delete=models.CASCADE)),
|
||||
],
|
||||
options={
|
||||
},
|
||||
|
||||
@@ -28,7 +28,7 @@ class MarkovTarget(models.Model):
|
||||
"""Define IRC targets that relate to a context, and can occasionally be talked to."""
|
||||
|
||||
name = models.CharField(max_length=200, unique=True)
|
||||
context = models.ForeignKey(MarkovContext)
|
||||
context = models.ForeignKey(MarkovContext, on_delete=models.CASCADE)
|
||||
|
||||
chatter_chance = models.IntegerField(default=0)
|
||||
|
||||
@@ -51,7 +51,7 @@ class MarkovState(models.Model):
|
||||
v = models.CharField(max_length=128)
|
||||
|
||||
count = models.IntegerField(default=0)
|
||||
context = models.ForeignKey(MarkovContext)
|
||||
context = models.ForeignKey(MarkovContext, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
index_together = [
|
||||
|
||||
Reference in New Issue
Block a user