# Generated by Django 3.1 on 2020-12-01 20:49

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('media', '0002_auto_20201201_2054'),
    ]

    operations = [
        migrations.RunSQL("""
            INSERT INTO media_luximage (
                id,
                image,
                title,
                alt,
                photo_credit_source,
                photo_credit_url,
                caption,
                pub_date,
                height,
                width,
                is_public,
                exif_raw,
                exif_aperture,
                exif_make,
                exif_model,
                exif_exposure,
                exif_iso,
                exif_focal_length,
                exif_lens,
                exif_date,
                point,
                location,
                sizes
            )
            SELECT 
                id,
                image,
                title,
                alt,
                photo_credit_source,
                photo_credit_url,
                caption,
                pub_date,
                height,
                width,
                is_public,
                exif_raw,
                exif_aperture,
                exif_make,
                exif_model,
                exif_exposure,
                exif_iso,
                exif_focal_length,
                exif_lens,
                exif_date,
                point,
                location,
                sizes
            FROM
                photos_luximage;
        """, reverse_sql="""
            INSERT INTO photos_luximage (
                id,
                image,
                title,
                alt,
                photo_credit_source,
                photo_credit_url,
                caption,
                pub_date,
                height,
                width,
                is_public,
                sizes,
                exif_raw,
                exif_aperture,
                exif_make,
                exif_model,
                exif_exposure,
                exif_iso,
                exif_focal_length,
                exif_lens,
                exif_date,
                point,
                location
            )
            SELECT
                id,
                image,
                title,
                alt,
                photo_credit_source,
                photo_credit_url,
                caption,
                pub_date,
                height,
                width,
                is_public,
                sizes,
                exif_raw,
                exif_aperture,
                exif_make,
                exif_model,
                exif_exposure,
                exif_iso,
                exif_focal_length,
                exif_lens,
                exif_date,
                point,
                location
            FROM
                media_luximage;
        """)
    ]