1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/peeringdb_server/migrations/0072_geocoordinatecache.py
Matt Griswold 5147028bee clean up / format / poetry (#1000)
* stub in poetry for pipenv

* re-add tester image

* add pre-commit / formatting

* fix ghactions

* revert test data whitespace, exclude tests/data

* revert ws

* decruft, rm tox/pipenv

* install dev packages for base image

* add lgtm config to force to py3
2021-07-10 10:12:35 -05:00

60 lines
2.0 KiB
Python

# Generated by Django 2.2.24 on 2021-06-25 11:01
import django_countries.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("peeringdb_server", "0071_populate_obj_counts"),
]
operations = [
migrations.CreateModel(
name="GeoCoordinateCache",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("country", django_countries.fields.CountryField(max_length=2)),
("city", models.CharField(blank=True, max_length=255, null=True)),
("address1", models.CharField(blank=True, max_length=255, null=True)),
("state", models.CharField(blank=True, max_length=255, null=True)),
("zipcode", models.CharField(blank=True, max_length=255, null=True)),
(
"latitude",
models.DecimalField(
blank=True,
decimal_places=6,
max_digits=9,
null=True,
verbose_name="Latitude",
),
),
(
"longitude",
models.DecimalField(
blank=True,
decimal_places=6,
max_digits=9,
null=True,
verbose_name="Longitude",
),
),
("fetched", models.DateTimeField(auto_now_add=True)),
],
options={
"verbose_name": "Geocoordinate Cache",
"verbose_name_plural": "Geocoordinate Cache Entries",
"db_table": "peeringdb_geocoord_cache",
},
),
]