-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmigration.txt
More file actions
25 lines (15 loc) · 788 Bytes
/
migration.txt
File metadata and controls
25 lines (15 loc) · 788 Bytes
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
key Migration needs:
1) Introduce a syncdb table to keep track of the current schema version
table_name, version_number, installed timestamp
2) Add version support to SyncDB.Schema, with (optional) hooks for an update
script (do we need downgrade scripts ?)
3) Add version support to SmartType, which compiles down into the correct
SyncDB.Schema version
4) Write a backup utility, which stores the Schema versions along with the
tables (maybe not necessary, since the syncdb table would be included in
the backup).
Potential issues:
1) The transform_row migration should make sure to also insert automatic
fields as such. Is this currently supported?
some references:
http://odetocode.com/blogs/scott/archive/2008/01/31/versioning-databases-the-baseline.aspx