Archived
removed file_path and file_path columns from image model and ran migrations again.
This commit is contained in:
@@ -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',
|
||||
),
|
||||
]
|
||||
@@ -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
|
||||
|
||||
@@ -2,4 +2,4 @@ DELETE FROM smugfolioapi_images
|
||||
WHERE id = 1;
|
||||
|
||||
SELECT *
|
||||
FROM smugfolioapi_images;
|
||||
FROM smugfolioapi_images;
|
||||
|
||||
Reference in New Issue
Block a user