Commit Graph

175 Commits

Author SHA1 Message Date
Mateusz Konieczny
1b66cd246d Add missing migrations 2022-02-23 01:06:20 +01:00
Mateusz Konieczny
d7def11d4f Replace State-owned by Government-owned
part of #734
2022-02-16 16:08:29 +01:00
Mateusz Konieczny
4fbe269744 Fix typo in a comment 2022-02-16 14:22:50 +01:00
Mateusz Konieczny
db34ee5b44 Remove virtual migration
it was an actual migration executed, but commited is a bit different to avoid completely changing meaning in database
it ended this way due to problems with coordination between code and mapping
2022-02-14 13:50:49 +01:00
Mateusz Konieczny
7c784ffc06 Register one more hotfix for a very troubled migration 2022-02-14 13:49:33 +01:00
Mateusz Konieczny
ead7c93867 Note that downgrades will fail of such data is present
As there is no unknown building type reclassifying is impossible
2022-02-14 13:36:19 +01:00
Mateusz Konieczny
fe94a51da4 Modify already commited migration
this avoids confusing migration in repository that could damage data, as meaning of the data in database mismatched decription
2022-02-14 13:36:19 +01:00
Mateusz Konieczny
9ba7e04f91 Improve name of unclassified 2022-02-14 13:36:19 +01:00
Mateusz Konieczny
f97fba7f3d Better name for buildings without marked state 2022-01-15 13:59:32 +01:00
Mateusz Konieczny
1bf1edd2ae Add ability to mark buildings as unknown
Also, make residential a bit stronger.
2022-01-11 17:51:07 +01:00
Mateusz Konieczny
f130578836 Add ability to mark constructions as garden buildings 2022-01-11 17:51:07 +01:00
Maciej Ziarkowski
ab03d3f44b Rename migrations to released 2021-10-11 14:20:58 +02:00
Maciej Ziarkowski
22cac99675 Change public ownership sources field to array 2021-10-08 13:19:48 +01:00
Maciej Ziarkowski
75f0044b3b Add community fields about public ownership 2021-09-27 13:47:27 +03:00
Maciej Ziarkowski
8c8a6a8094 Add user opinion fields to community section 2021-09-24 20:31:03 +03:00
Maciej Ziarkowski
29ed25f36c Replace likes with generic building-user attribs 2021-08-23 02:26:58 +01:00
Maciej Ziarkowski
2c6f43f3a7 Release dynamics toggle migrations 2021-03-19 15:09:38 +00:00
Maciej Ziarkowski
4aa35b94dd Add logical toggle for demolished buildings 2021-03-18 19:44:16 +00:00
Maciej Ziarkowski
28bad44220 Add simple dynamics API support 2021-03-11 19:15:58 +00:00
Maciej Ziarkowski
37bbf41576 Move WIP migrations to unreleased/ subfolder
Currently, there are migration SQL scripts on the master branch
that have not been released, yet are in the migrations folder.
Although the files have a 0xx number rather than a set number,
this could still lead someone to run the scripts following the
standard migration application process defined in the docs.
Please do not commit work-in-progress migration files to the
master branch. The temporary unreleased/ folder should be
removed once these migrations are released.
2021-01-20 17:55:45 +00:00
Tom Russell
a143b76dde Add note on building_verification table permissions 2020-08-04 16:52:21 +01:00
Tom Russell
672a1efde4 Add migrations for user verification of building attributes 2020-08-04 15:53:33 +01:00
Tom Russell
150ef00ca9 Update etl/migrations docs with a little more on prerequisites 2020-06-18 10:32:35 +01:00
Tom Russell
d1c42a40a6 Rename construction migration to 017, fix tile definition
Note that enum types need to be cast to ::text for mapnik
rules to work as expected.
2020-04-17 17:01:21 +01:00
Tom Russell
2696820ff5
Merge pull request #586 from colouring-london/feature/568-activate-construction
Feature/568 activate construction
2020-04-09 11:28:20 +01:00
Tom Russell
250c37ed75
Merge pull request #590 from colouring-london/feature/migrations_construction
WIP for #361 intial construction db elements
2020-04-09 10:51:34 +01:00
Tom Russell
5d8a0dd42b
Merge branch 'master' into features/migrations_sustainability 2020-04-09 10:47:55 +01:00
Tom Russell
ee64c301cd
Merge pull request #588 from colouring-london/feature/migrations_type_extend
Migrations to enable the original landuse to be added to site
2020-04-09 10:43:30 +01:00
Tom Russell
0dea779f68
Merge pull request #587 from colouring-london/features/migrations_community
Initial cut of community fields
2020-04-09 10:39:21 +01:00
Dominic H
eb368c7d1d Housekeeping 2020-04-09 10:28:45 +01:00
dominic
076742adf8 Switching to josnb object for #362 2020-04-09 10:28:45 +01:00
dominic
96aee71a4d Typo corrections for #362 2020-04-09 10:28:45 +01:00
dominic
3d687c48ba All fields required for launch as #362
- Tested on local db copy
- Enables #407
2020-04-09 10:28:45 +01:00
dominic
3246bf3dd5 Rename for #362 2020-04-09 10:27:35 +01:00
Dominic H
b0df644c2c Stashing WIP for #362
- Complete fields list
- Completed cat down file
- Draft cat up file
2020-04-09 10:27:35 +01:00
Dominic H
881f8512de WIP for #362 2020-04-09 10:27:35 +01:00
MeldaS
315c028c6a Create SQL scipts for construction category 2020-04-01 12:15:59 +01:00
dominijk
b84bf4801d WIP for #361 intial construction db elements
- Materials list from #539
- Adding roof form for #584
2020-02-27 18:30:52 +00:00
dominijk
6dfc82a397 Ready for staging, tested on local for #405 2020-02-27 16:19:52 +00:00
dom_ucl_mb
5ca6a6f7fe WIP for #405 2020-02-13 17:22:16 +00:00
Dominic H
a03151af51 Migrations to enable the original landuse to be added to site
- links to #500 
- addresses #363 
- addresses #491
2019-12-13 16:24:39 +00:00
Maciej Ziarkowski
6920a06b51 Rename migration files 2019-12-03 18:33:12 +00:00
Maciej Ziarkowski
817b44515b Change Mixd Use order to capitalised 2019-12-03 18:19:50 +00:00
Maciej Ziarkowski
b375c34ee3 Update migration comments 2019-12-03 13:39:18 +00:00
Maciej Ziarkowski
49a58e9716 Remove .DS_Store files 2019-12-02 21:02:09 +00:00
Maciej Ziarkowski
b41f9f555d Merge branch 'features/migrations_landuse' into feature/513-activate-land-use 2019-12-02 21:01:03 +00:00
Maciej Ziarkowski
8bbe63fee7 Add land use groups lookup, drop original land use 2019-12-02 20:58:50 +00:00
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
Maciej Ziarkowski
39ddd546f3 Add user blocking migrations 2019-11-22 18:12:48 +00:00
Dominic H
53e8d893b0 Stashing 2019-11-08 17:48:00 +00:00
mz8i
14bc6e0d91
Fix/category default values (#451)
* Amend sustainability and type migrations

* Add DROP TYPE to down migrations
2019-10-02 16:47:17 +01:00
Maciej Ziarkowski
31454e8299 Delete orig_building_use from 012.type migration
Remove syntax error from migration and remove unneeded column
2019-10-01 17:44:04 +01:00
Maciej Ziarkowski
f47e4560d3 Reorder bulk extract migration 012->013 2019-10-01 17:11:35 +01:00
Maciej Ziarkowski
6fcbfc1104 Merge branch 'master' into develop 2019-10-01 17:09:57 +01:00
Dominic H
ea150250a3 File naming consistency
Sequential numbering for migrations
- Also removed sustainability-up-extras as original sustainbility file had not been run
2019-10-01 16:30:15 +01:00
Dominic H
de927faf7c Delete 011.sustainability-extra.up.sql
Duplicate file house keeping  remove sustainability-extra
2019-10-01 16:23:58 +01:00
dominic
70701526a7
Merge pull request #425 from tomalrussell/features/migrations_sustainability
Typo correction closes #413
2019-10-01 16:19:00 +01:00
dominic
b5e6b41270
Merge pull request #431 from tomalrussell/feature/migrations_type
Feature/migrations type
2019-10-01 16:18:35 +01:00
Maciej Ziarkowski
bc4b4af2d6 Convert all columns to timestamptz in migration 2019-10-01 14:57:11 +01:00
Maciej Ziarkowski
6783a00e21 Merge branch 'develop' into feature/342-bulk-extract 2019-09-30 15:06:01 +01:00
Dominic H
f259429041 Ensure this file is on PR 2019-09-27 17:33:37 +01:00
Dominic H
83ce6423d1 WIP for #432
- Also noted agreed standard for file naming extensions to migrations 
file
2019-09-27 16:05:35 +01:00
dominic
b4cbe77ea2
Update 011.sustainability.up.sql 2019-09-27 15:03:20 +01:00
Dominic H
8e6e94e23b Readies #363 for launch 2019-09-27 14:51:41 +01:00
Dominic H
97d47d54ac Readies #363 for launch 2019-09-27 14:47:16 +01: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
Dominic H
13fbea77d9 Typo correction closes #413 2019-09-18 11:08:02 +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
4a7eb350f2 WIP for #363
- Needs landuse table from #358
2019-08-30 13:37:56 +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
0dee6ae167 Add data migrations for bulk extracts 2019-08-29 12:01:41 +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