diff options
Diffstat (limited to 'app/taxonomy/migrations')
-rw-r--r-- | app/taxonomy/migrations/0001_initial.py | 57 | ||||
-rw-r--r-- | app/taxonomy/migrations/0002_auto_20211006_2025.py | 28 | ||||
-rw-r--r-- | app/taxonomy/migrations/__init__.py | 0 |
3 files changed, 85 insertions, 0 deletions
diff --git a/app/taxonomy/migrations/0001_initial.py b/app/taxonomy/migrations/0001_initial.py new file mode 100644 index 0000000..bde5e44 --- /dev/null +++ b/app/taxonomy/migrations/0001_initial.py @@ -0,0 +1,57 @@ +# Generated by Django 3.1.3 on 2020-11-30 22:45 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + ] + + operations = [ + migrations.CreateModel( + name='Category', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=250)), + ('pluralized_name', models.CharField(max_length=60, null=True)), + ('slug', models.SlugField(blank=True)), + ('color_rgb', models.CharField(blank=True, max_length=20)), + ('date_created', models.DateTimeField(auto_now_add=True)), + ('date_updated', models.DateTimeField(auto_now=True)), + ], + options={ + 'verbose_name': 'Category', + 'verbose_name_plural': 'Categories', + }, + ), + migrations.CreateModel( + name='LuxTag', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), + ('slug', models.SlugField(max_length=100, unique=True, verbose_name='slug')), + ('color_rgb', models.CharField(blank=True, max_length=20)), + ], + options={ + 'verbose_name': 'Tag', + 'verbose_name_plural': 'Tags', + }, + ), + migrations.CreateModel( + name='TaggedItems', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('object_id', models.IntegerField(db_index=True, verbose_name='object ID')), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='taxonomy_taggeditems_tagged_items', to='contenttypes.contenttype', verbose_name='content type')), + ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='taxonomy_taggeditems_items', to='taxonomy.luxtag')), + ], + options={ + 'abstract': False, + }, + ), + ] diff --git a/app/taxonomy/migrations/0002_auto_20211006_2025.py b/app/taxonomy/migrations/0002_auto_20211006_2025.py new file mode 100644 index 0000000..6e8f57a --- /dev/null +++ b/app/taxonomy/migrations/0002_auto_20211006_2025.py @@ -0,0 +1,28 @@ +# Generated by Django 3.2.8 on 2021-10-06 20:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('taxonomy', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='category', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + migrations.AlterField( + model_name='luxtag', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + migrations.AlterField( + model_name='taggeditems', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + ] diff --git a/app/taxonomy/migrations/__init__.py b/app/taxonomy/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/taxonomy/migrations/__init__.py |