|
3 | 3 | Migrations |
4 | 4 | ========== |
5 | 5 |
|
6 | | -TBD: rewrite |
7 | | - |
8 | | -- what is migration: examples изменение + первоначальное создание |
9 | | -- ce approach ? |
10 | | -- ee approach: centralized migration(s?) management |
11 | | - - prereq: etcd, 3.x ee cluster w/etcd, tt-ee 2.4.0 || tcm, |
12 | | - tarantool user with ~admin permissions |
13 | | - advertise url required? |
14 | | - - way to manage: tt and tcm (check diff implementation) |
15 | | - - writing migrations: |
16 | | - examples: create space (if_not_exists?), add index (with shard key), add index existing space, |
17 | | - space upgrade: wait or just run in bg |
18 | | - |
19 | | - - general workflow + status |
20 | | - - troubleshooting? |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | 6 | **Migration** refers to any change in a data schema: adding or removing a field, |
27 | 7 | creating or dropping an index, changing a field format, an so on. Space creation |
28 | 8 | is also a schema migration. You can use this fact to track the evolution of your |
@@ -129,7 +109,6 @@ and the database schema is updated. |
129 | 109 | However, this method may not work for everyone. |
130 | 110 | You may not be able to restart Tarantool or update the code using the hot-reload mechanism. |
131 | 111 |
|
132 | | - |
133 | 112 | **Method 2**: the :ref:`tt <tt-cli>` utility |
134 | 113 |
|
135 | 114 | Connect to the necessary instance using ``tt connect``. |
@@ -177,15 +156,15 @@ The centralized migration management mechanism is implemented in the Enterprise |
177 | 156 | version of the :ref:`tt <tt-cli>` utility and in :ref:`tcm`. |
178 | 157 |
|
179 | 158 | To learn how to manage migrations in Tarantool EE clusters from the command line, |
180 | | -see :ref:`performing_migrations_tt`. To learn how to use the mechanism from the |tcm| |
| 159 | +see :ref:`centralized_migrations_tt`. To learn how to use the mechanism from the |tcm| |
181 | 160 | web interface, see the :ref:`tcm_migrations` |tcm| documentation page. |
182 | 161 |
|
183 | 162 | The ``tt`` implementation of the mechanism additionally includes commands for |
184 | 163 | troubleshooting migration issues. :ref:`troubleshooting_migrations_tt`. |
185 | 164 |
|
186 | | - |
187 | 165 | .. toctree:: |
| 166 | + :maxdepth: 1 |
188 | 167 |
|
189 | 168 | space_upgrade |
190 | | - performing_migrations_tt |
| 169 | + centralized_migrations_tt |
191 | 170 | troubleshooting_migrations_tt |
0 commit comments