diff options
Diffstat (limited to 'app/media/0002_auto_20201201_2054.py')
-rw-r--r-- | app/media/0002_auto_20201201_2054.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/media/0002_auto_20201201_2054.py b/app/media/0002_auto_20201201_2054.py new file mode 100644 index 0000000..843f48b --- /dev/null +++ b/app/media/0002_auto_20201201_2054.py @@ -0,0 +1,46 @@ +# Generated by Django 3.1 on 2020-12-01 19:26 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('media', '0001_initial'), + ] + + operations = [ + migrations.RunSQL(""" + INSERT INTO media_luximagesize ( + id, + name, + width, + height, + quality + ) + SELECT + id, + name, + width, + height, + quality + FROM + photos_luximagesize; + """, reverse_sql=""" + INSERT INTO photos_luximagesize ( + id, + name, + width, + height, + quality + ) + SELECT + id, + name, + width, + height, + quality + FROM + media_luximagesize; + """) + ] |