removed file_path and file_path columns from image model and ran migrations again.

This commit is contained in:
2022-03-18 10:39:42 -05:00
parent 74a847fe6a
commit c202c2c6c0
3 changed files with 24 additions and 1 deletions
@@ -0,0 +1,21 @@
# Generated by Django 4.0.3 on 2022-03-18 15:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('smugfolioapi', '0002_rename_smug_user_id_images_smug_user_images_picture'),
]
operations = [
migrations.RemoveField(
model_name='images',
name='file_name',
),
migrations.RemoveField(
model_name='images',
name='file_path',
),
]
+2
View File
@@ -9,6 +9,8 @@ class Images(models.Model):
width_field=None, max_length=None, null=True
)
# picture key in the table is storing the file path, not the binary data, so I don't have worry about space constraints with the 100 character limit.
# @property
# def imagecount(self):
# return self.__imagecount
+1 -1
View File
@@ -2,4 +2,4 @@ DELETE FROM smugfolioapi_images
WHERE id = 1;
SELECT *
FROM smugfolioapi_images;
FROM smugfolioapi_images;