DB Migration Process » History » Version 3
Amber Herold, 02/02/2010 10:52 AM
1 | 1 | Amber Herold | h1. DB Migration Process |
---|---|---|---|
2 | |||
3 | 3 | Amber Herold | The tables that will be affected are in the dbemdata database and the project database. |
4 | Migrate the user data from project to dbemdata because dbemdata is already in Sinedon format. |
||
5 | 1 | Amber Herold | |
6 | +dbemdata+ |
||
7 | |||
8 | * GroupData |
||
9 | * UserData |
||
10 | |||
11 | +project+ |
||
12 | |||
13 | * users |
||
14 | * login |
||
15 | * pis |
||
16 | * userdetails |
||
17 | * projectowner |
||
18 | 2 | Amber Herold | |
19 | h2. 1 Add new columns to UserData |
||
20 | |||
21 | Add: |
||
22 | |||
23 | * username |
||
24 | * fullname |
||
25 | * firstname |
||
26 | * lastname |
||
27 | * password |
||
28 | |||
29 | |||
30 | Leave the existing columns as is. Use of "name" and "full name" (with a space) will be phased out. |
||
31 | 1 | Amber Herold | |
32 | 3 | Amber Herold | h2. 2 Copy data to the UserData table |
33 | |||
34 | From users, copy username, firstname, lastname to UserData. |
||
35 | From login, copy password to UserData. |
||
36 | From userdetails, copy email to UserData. |
||
37 | |||
38 | h2. 3 Create projectowner table |
||
39 | |||
40 | Move the data from pis table to a new projectowner table in the project database. This table will refer to users in the UserData table. |
||
41 | We will phase out use of the pis table. |
||
42 | |||
43 | h3. 4 Modify userdetails table |
||
44 | |||
45 | Remove the email column from the userdetails table. |
||
46 | 2 | Amber Herold |