diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-17 17:59:37 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-18 11:15:14 +0100 |
| commit | d760e9f87fe040ab33dcdb942303d39fbf83a9c8 (patch) | |
| tree | 19f071c01963f362b955c04bcef67babf2e65ca3 /ishtar_common/migrations | |
| parent | 6ce08c7273f63fdc24f7d4f71c4f8f05d7638458 (diff) | |
| download | Ishtar-d760e9f87fe040ab33dcdb942303d39fbf83a9c8.tar.bz2 Ishtar-d760e9f87fe040ab33dcdb942303d39fbf83a9c8.zip | |
⚡️ cache search counts
Diffstat (limited to 'ishtar_common/migrations')
| -rw-r--r-- | ishtar_common/migrations/0273_searchcache.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0273_searchcache.py b/ishtar_common/migrations/0273_searchcache.py new file mode 100644 index 000000000..00b2f1fb1 --- /dev/null +++ b/ishtar_common/migrations/0273_searchcache.py @@ -0,0 +1,31 @@ +# Generated by Django 4.2.19 on 2026-03-17 16:02 + +from django.db import migrations, models +import django.db.models.deletion +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + ('ishtar_common', '0272_ishtarsiteprofile_statementcondition'), + ] + + operations = [ + migrations.CreateModel( + name='SearchCache', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('query', models.TextField(blank=True, default='', verbose_name='Query')), + ('count', models.IntegerField(verbose_name='Count')), + ('updated', models.DateTimeField(default=django.utils.timezone.now)), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')), + ('ishtar_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ishtar_common.ishtaruser')), + ], + options={ + 'verbose_name': 'Cache - Search count', + 'verbose_name_plural': 'Cache - Search counts', + }, + ), + ] |
