File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 2
2
* The migrator interface provides the ability to handle all abilities which
3
3
* are needed to successfully modify the DD of your tables.
4
4
* This includes all DDL methods provided by SQL naturally.
5
+ *
6
+ * Considering the zero downtime deployment we are handling migrations like
7
+ * the following:
8
+ *
9
+ * ## Data manipulation, the flow:
10
+ *
11
+ * *) The very first step is always a full dump, for the sake of security
12
+ *
13
+ * - all operations that are deleting a currently existing column, e.g. renaming a column:
14
+ * - 1. duplicate the column
15
+ * - if renamed:
16
+ * - 1. create a trigger to update both columns
17
+ * - 2. disable/delete trigger after successful deployment
18
+ * - if deleted:
19
+ * - 1. apply steps from the renaming process
20
+ * - 2. create a backup of this column (+PK)/table and delete it afterwards (after the successful deployment)
21
+ * - all operations that modify content
22
+ * - 1. Retrieve data to be applied
23
+ * - 2. Extract PKs of to be updated rows
24
+ * - 3. Create backup of to be updated rows
25
+ * - 4. Apply changes
5
26
*/
6
27
7
28
function dummy ( ) {
You can’t perform that action at this time.
0 commit comments