summaryrefslogtreecommitdiff
path: root/app/deals/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-06-30 15:10:01 -0500
committerluxagraf <sng@luxagraf.net>2023-06-30 15:10:01 -0500
commit3d2cc4ef62465699ccc09747c65fb117e11502e9 (patch)
treec74c781bcb04131595c5a5c3a42c6944a4aeb0ff /app/deals/migrations
parent194eccad7db0c16c36c48e2e5958dd25c1154437 (diff)
seperated out brands and made buttons to copy code
Diffstat (limited to 'app/deals/migrations')
-rw-r--r--app/deals/migrations/0011_brand.py23
-rw-r--r--app/deals/migrations/0012_rename_brand_deal_brand_str.py18
-rw-r--r--app/deals/migrations/0013_deal_brand.py19
3 files changed, 60 insertions, 0 deletions
diff --git a/app/deals/migrations/0011_brand.py b/app/deals/migrations/0011_brand.py
new file mode 100644
index 0000000..07811b5
--- /dev/null
+++ b/app/deals/migrations/0011_brand.py
@@ -0,0 +1,23 @@
+# Generated by Django 4.2.2 on 2023-06-30 12:57
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('deals', '0010_alter_deal_discount_percent_str'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Brand',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=200)),
+ ],
+ options={
+ 'ordering': ('name',),
+ },
+ ),
+ ]
diff --git a/app/deals/migrations/0012_rename_brand_deal_brand_str.py b/app/deals/migrations/0012_rename_brand_deal_brand_str.py
new file mode 100644
index 0000000..63e5566
--- /dev/null
+++ b/app/deals/migrations/0012_rename_brand_deal_brand_str.py
@@ -0,0 +1,18 @@
+# Generated by Django 4.2.2 on 2023-06-30 12:58
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('deals', '0011_brand'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='deal',
+ old_name='brand',
+ new_name='brand_str',
+ ),
+ ]
diff --git a/app/deals/migrations/0013_deal_brand.py b/app/deals/migrations/0013_deal_brand.py
new file mode 100644
index 0000000..e1430fa
--- /dev/null
+++ b/app/deals/migrations/0013_deal_brand.py
@@ -0,0 +1,19 @@
+# Generated by Django 4.2.2 on 2023-06-30 12:59
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('deals', '0012_rename_brand_deal_brand_str'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='deal',
+ name='brand',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='deals.brand'),
+ ),
+ ]