mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 13:51:09 -05:00
major changes, including tailwind v4
This commit is contained in:
66
rides/migrations/0007_update_ridelocation_fields.py
Normal file
66
rides/migrations/0007_update_ridelocation_fields.py
Normal file
@@ -0,0 +1,66 @@
|
||||
# Generated by Django 5.1.4 on 2025-08-15 14:18
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.contrib.gis.db import models as gis_models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("rides", "0006_alter_ridelocation_options_remove_ridelocation_notes_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
# Add new fields according to our enhanced model
|
||||
migrations.AddField(
|
||||
model_name='ridelocation',
|
||||
name='entrance_notes',
|
||||
field=models.TextField(blank=True, help_text='Directions to ride entrance, queue location, or navigation tips'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='ridelocation',
|
||||
name='accessibility_notes',
|
||||
field=models.TextField(blank=True, help_text='Information about accessible entrances, wheelchair access, etc.'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='ridelocation',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='ridelocation',
|
||||
name='updated_at',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
|
||||
# Update existing fields
|
||||
migrations.AlterField(
|
||||
model_name='ridelocation',
|
||||
name='park_area',
|
||||
field=models.CharField(blank=True, db_index=True, help_text="Themed area or land within the park (e.g., 'Frontierland', 'Tomorrowland')", max_length=100),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='ridelocation',
|
||||
name='point',
|
||||
field=gis_models.PointField(blank=True, help_text='Geographic coordinates for ride location (longitude, latitude)', null=True, srid=4326),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='ridelocation',
|
||||
name='ride',
|
||||
field=models.OneToOneField(on_delete=models.CASCADE, related_name='ride_location', to='rides.ride'),
|
||||
),
|
||||
|
||||
# Update Meta options
|
||||
migrations.AlterModelOptions(
|
||||
name='ridelocation',
|
||||
options={'ordering': ['ride__name'], 'verbose_name': 'Ride Location', 'verbose_name_plural': 'Ride Locations'},
|
||||
),
|
||||
|
||||
# Add index for park_area if it doesn't exist
|
||||
migrations.AddIndex(
|
||||
model_name='ridelocation',
|
||||
index=models.Index(fields=['park_area'], name='rides_ridelocation_park_area_idx'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user