You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.0 KiB
53 lines
2.0 KiB
# Generated manually for geolocation_package app
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='GeoNamesCity',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=200)),
|
|
('country_code', models.CharField(max_length=2)),
|
|
('latitude', models.FloatField()),
|
|
('longitude', models.FloatField()),
|
|
('feature_class', models.CharField(max_length=1)),
|
|
('population', models.BigIntegerField(null=True)),
|
|
],
|
|
options={
|
|
'db_table': 'geonames_city',
|
|
},
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['latitude', 'longitude'], name='geonamescit_latitu_latitude_7e2a6d_idx'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['country_code'], name='geonamescit_countr_country_c_5c8b6a_idx'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['feature_class'], name='geonamescit_featur_feature_c_9b2a4d_idx'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['feature_class', 'latitude', 'longitude'], name='idx_geonames_feature_lat_lon'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['latitude'], name='idx_geonames_lat_populated', condition=models.Q(feature_class='P')),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='geonamescity',
|
|
index=models.Index(fields=['longitude'], name='idx_geonames_lon_populated', condition=models.Q(feature_class='P')),
|
|
),
|
|
]
|