Commit Graph

58 Commits

Author SHA1 Message Date
Maciej Ziarkowski
1dddf3a31e Turn on land use groups as used 2019-12-02 20:56:49 +00:00
Maciej Ziarkowski
aa3e1604e6 Merge branch 'features/migrations_landuse' of github.com:tomalrussell/colouring-london into features/migrations_landuse 2019-12-02 18:15:46 +00:00
Maciej Ziarkowski
bfdde02fab Merge branch 'feature/bulk_data_sources' into features/migrations_landuse 2019-12-02 18:13:55 +00:00
Maciej Ziarkowski
afe9d048f2 Make land use classification migration concise 2019-12-02 18:08:35 +00:00
Dominic H
7b8215517a Update to migrations for staging test 2019-12-02 15:57:22 +00:00
Dominic H
863dbe7eef Adds bul source migrations for landuse in support of #358 2019-12-02 15:02:58 +00:00
Maciej Ziarkowski
76def0022f Fix errors in landuse migrations 2019-12-02 12:53:38 +00:00
Dominic H
20e9299226 Work toward #358
-link to 
https://github.com/colouring-london/colouring_london_analysis/blob/master/bulk_extracts/nlud_landuse_classification.sql
2019-11-29 17:35:50 +00:00
dominic
6b52f2c573 Merge branch 'features/migrations_landuse'
of https://github.com/tomalrussell/colouring-london into 
features/migrations_landuse
2019-09-19 07:53:10 +01:00
dominic
16810db016 Stashing changes 2019-09-19 07:50:23 +01:00
Dominic H
68a9fd1b80 WIP for #358
- Switched from ENUM to table 
- Final steps to complete
2019-09-18 15:59:06 +01:00
Tom Russell
0ec5164f13
Merge pull request #389 from tomalrussell/features/migrations_sustainability
Sustainability sub categories for launch #360
2019-08-30 13:58:23 +01:00
dominic
f9a48f4a55 File rename to follow conventions for #360
- In future years do we want tocapture DEC certifcate date?
2019-08-30 13:02:37 +01:00
Dominic H
21c2c6cccc Addresses review comments for #360 2019-08-29 16:13:09 +01:00
Maciej Ziarkowski
9c67b46f02 Add password reset token database migrations 2019-08-21 14:20:53 +01:00
Maciej Ziarkowski
1901ebad42 Add user delete database migrations
Apart from adding the delete-related columns, this migration replaces
the existing unique constraint on the username with a unique index
which has a WHERE clause, so that deleted usernames need not be unique.
This is to avoid having to implement a special function for generating
unique IDs just to keep the deleted username unique and under 30 chars.
The deleted username can still use e.g. the initial part of the user_id
but the uniqueness is not required.
2019-08-16 11:12:18 +01:00
Dominic H
35f6eebeb6 Sustainability sub categories for launch #360
- Tested on local db
2019-08-15 14:28:27 +01:00
Dominic H
1d194cf4ca Stashing WIP for #358 2019-08-12 14:54:54 +01:00
Dominic H
95592181c4 Innit commit for #358 2019-08-09 14:55:01 +01:00
dominic
934810782b
Update 006.controls.up.sql
Bug catch
2019-03-23 09:16:51 +00:00
dominic
a8a864ad80
Update 006.controls.up.sql 2019-03-22 18:21:36 +00:00
dominic
83e7d865f4 Additional categories for conservation areas
- closes #214
- closes #210
- closes #193
- closes #171
2019-03-22 18:01:57 +00:00
Tom Russell
bfe8b6e35e Grant search table permissions 2019-02-11 09:30:22 +00:00
Tom Russell
6b07ebc181 Update GIN/GIST index note
With a little explain/analyze testing and both gin and gist indexes,
it looks like using the <-> operator in combination with a low limit
will use the GIST index and work well for basic search-string matching.
2019-02-05 21:15:48 +00:00
Tom Russell
8724ccd93b Use GIST index on search terms 2019-02-05 13:37:32 +00:00
Tom Russell
b7cbb5d55f Draft search box db table 2019-01-22 22:38:00 +00:00
Tom Russell
0f17a16382 Drop duplicate likes and reset counts 2019-01-20 14:36:15 +00:00
Tom Russell
56a14f641b Fix controls migration create type 2019-01-19 19:44:28 +00:00
Tom Russell
c30ffda338 Add date details migrations 2019-01-19 17:46:51 +00:00
Tom Russell
7d97424ca0 Add planning controls database fields 2019-01-10 09:08:26 +00:00
Tom Russell
da64c153fc Limit likes to one per-user per-building (db constraint) 2018-12-11 17:17:41 +00:00
Tom Russell
6737c87803 Grant select building_properties to app db user 2018-10-25 14:43:37 +01:00
Tom Russell
6cc6630196 Enable like button (drop restriction on 1-per-user)
[Closes #82]
2018-10-25 13:34:54 +01:00
Tom Russell
7b5866482e Typo in sql permissions 2018-10-21 20:47:44 +01:00
Tom Russell
43f3f4c27e Make sure to drop base tables (and cascade) 2018-10-21 19:46:14 +00:00
Tom Russell
710919cecd Add source detail field for data/facade source 2018-10-20 18:37:24 +01:00
Tom Russell
ab2db30bc4 Allow requesting user API key 2018-10-20 12:21:11 +01:00
Tom Russell
4696e3e079 Update etl to load UPRNs to table 2018-10-02 21:12:46 +01:00
Tom Russell
ddd300405c Default 0 storeys (handle nulls) 2018-09-30 23:06:30 +01:00
Tom Russell
148187d17e Remove unused index from drop list 2018-09-30 20:31:20 +01:00
Tom Russell
d31d5e0c10 Fix hashed password length constraint 2018-09-30 20:30:21 +01:00
Tom Russell
ae17f6db14 Index and constrain building_user_likes (one like per building per user) 2018-09-30 19:49:41 +01:00
Tom Russell
8fdcb8defa Add building_properties table, buildings.revision_id 2018-09-30 16:17:11 +01:00
Tom Russell
4984ad9515 Update migration-running docs 2018-09-29 18:14:21 +01:00
Tom Russell
d1ea702939 Add location, date, size, likes to database 2018-09-29 18:14:06 +01:00
Tom Russell
36ee3e8c23 Create/drop database elements conditionally 2018-09-29 18:13:34 +01:00
Tom Russell
f8e329ce77 Add index-dropping migrations 2018-09-27 21:38:37 +01:00
Tom Russell
a66b2c4596 Rename core migrations 2018-09-27 21:38:21 +01:00
Tom Russell
3f9c9f3221 Split indexing further, UPRN requires bigint 2018-09-25 21:46:22 +01:00
Tom Russell
ab32c36c98 Update database notes (single app user required) 2018-09-25 20:46:05 +01:00