# Generated by Django 5.0.2 on 2025-05-25 12:50

from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('userSettings', '0001_initial'),
    ]

    operations = [
        # Use RunSQL for MySQL 5.7 compatibility (doesn't support RENAME COLUMN)
        migrations.RunSQL(
            # MySQL 5.7 compatible syntax - CHANGE requires full column definition
            # CharField(max_length=50) becomes VARCHAR(50) in MySQL
            sql="ALTER TABLE `user_settings` CHANGE `timezone_name` `user_timezone` VARCHAR(50) NOT NULL DEFAULT 'UTC';",
            reverse_sql="ALTER TABLE `user_settings` CHANGE `user_timezone` `timezone_name` VARCHAR(50) NOT NULL DEFAULT 'UTC';",
        ),
    ]
