-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: install postgis and add lat/long fields for facilities
- Loading branch information
1 parent
048f60f
commit ccd5357
Showing
9 changed files
with
229 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.2.5 on 2021-07-22 12:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0011_alter_facility_facility_type_category'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='facility', | ||
name='lat', | ||
field=models.FloatField(default=0.0), | ||
), | ||
migrations.AddField( | ||
model_name='facility', | ||
name='lon', | ||
field=models.FloatField(default=0.0), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 3.2.5 on 2021-07-22 12:38 | ||
|
||
from django.db import migrations | ||
|
||
EXTENSIONS_SQL = ''' | ||
CREATE EXTENSION IF NOT EXISTS plpgsql; | ||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | ||
CREATE EXTENSION IF NOT EXISTS postgis; | ||
CREATE EXTENSION IF NOT EXISTS postgis_raster; | ||
CREATE EXTENSION IF NOT EXISTS postgis_topology; | ||
-- CREATE EXTENSION IF NOT EXISTS postgis_sfcgal; | ||
-- CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; | ||
-- CREATE EXTENSION IF NOT EXISTS address_standardizer; | ||
-- CREATE EXTENSION IF NOT EXISTS address_standardizer_data_us; | ||
-- CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder; | ||
''' | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0012_auto_20210722_1525'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL(EXTENSIONS_SQL) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.