summaryrefslogtreecommitdiff
path: root/app/media/migrations/0004_auto_20201201_2139.py
blob: 4847ece2b8cc65af434d5179aca2b9fad497f13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Generated by Django 3.1 on 2020-12-01 21:39

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('media', '0003_auto_20201201_2125'),
    ]

    operations = [
        migrations.RunSQL("""
            INSERT INTO media_luximage_sizes (
                id,
                luximage_id,
                luximagesize_id
            )
            SELECT 
                id,
                luximage_id,
                luximagesize_id
            FROM
                photos_luximage_sizes;
        """, reverse_sql="""
            INSERT INTO photos_luximage_sizes (
                id,
                luximage_id,
                luximagesize_id
            )
            SELECT
                id,
                luximage_id,
                luximagesize_id
            FROM
                media_luximage_sizes;
        """)
    ]