forked from CartoDB/cartodb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
UPGRADE
61 lines (39 loc) · 1.79 KB
/
UPGRADE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Standard migration (default)
----------------------------
Unless stated otherwise, assume any new CARTO release requires calling these commands:
$ bundle exec rake db:migrate
NOTES:
- Redis server must be listening on the configured port (see config/app_config.yml) for some of the steps below to work
- Rails must be restarted after an upgrade
Extension migration
-------------------
Most CARTO releases need an updated cartodb-postgresql extension. After installing it, it must be upgraded in all existing databases:
$ bundle exec rake cartodb:db:upgrade_postgres_extension
Specific version notes
======================
3.1.0 onwards
-------------
Upgrade notes are now kept in NEWS.md. Check the NOTICE section of the release you are upgrading to.
3.0.0 -> 3.1.0
--------------
* Run rake task:
bundle exec rake cartodb:overlays:create_overlays
if the task is run more than one time (because something happened) a flag to remove previous overlays should be pass
bundle exec rake cartodb:overlays:create_overlays[true]
this will remove all the overlays for visualizations so it MUST NOT be called after visualization overlays has been customized
2.x -> 3.0.0
------------
* Install CartoDB extension version 0.3.x
* Run rake tasks:
- bundle exec rake cartodb:db:create_default_vis_permissions
- bundle exec rake cartodb:db:populate_permission_entity_id
Mandatory migration
-------------------
Versions marked at the NEWS.md as requiring this migration must:
- ensure the required version of cartodb-postgresql extension
(see README.md) is installed on the user database hosts
- run all this commands:
$ bundle exec rake db:migrate
$ bundle exec rake cartodb:db:reset_trigger_check_quota
$ bundle exec rake cartodb:db:load_functions
$ bundle exec rake cartodb:db:create_schemas