Understanding Versions
Understanding The Versions And Change Detection
In the timeline view, each thumbnail represents a version of change the metadata underwent. Here the version of the change is 297 with a summary of additions, deletions and updates. It means there were 296 other version of changes that occurred, but it is out of the scope of our tutorial.
- Click on the thumbnail 297.
- A detailed view appears below with all the changes that occurred.
- Summary says there were 6 objects and 28 properties added. 0 deletions and 0 updates.
- 1 database
Organizationwas added. - 1 schema
publicwas added to Organization database. - 4 tables were added to the public schema.
- 1 table
Inventoryadded with 3 columns, 2 constraints and 2 indexes. - 1 table
Productsadded with 4 columns, 1 constraints and 1 index. - 1 table
Salesadded with 3 columns, 2 constraints and 2 indexes. - 1 table
Warehouseadded with 4 columns, 2 constraints and 2 index.
- 1 table
- 1 database
- Click the respective tabs to see column types and constraint and index names. For a newly added object, the values show in the NEW VALUE column.
The metadata timeline detection job runs in background at a scheduled frequency to detects changes in the metadata. The change if detected is assigned a version number, which then appears on the timeline the next time you visit it. Let's say there was a change detected by the job. This change will be assigned version 298.
- Click on the thumbnail 298.
- In the view below, you can see that 3 objects and 2 properties have been updated.
- 1 database
Organizationwas updated. - 1 schema
publicwas updated in Organization database. - 1 table
Inventoryin public schema was updated.- A new column
inventory_update_timewas added to the Inventory table. It is in upper case for display purpose only. - 1 column
available_quantitywas updated tointegerfromnumber. - The previous value shows struck through under OLD VALUE, and the current value under NEW VALUE.
- A new column
- 1 database
In the next example a delete operation is captured in the metadata timeline version. It is version 299.
- Click on the thumbnail 299.
- In the view below, you can see that 3 objects have been update. 1 property have been deleted.
- 1 database
Organizationwas updated. - 1 schema
publicwas updated in Organization database. - 1 table
Warehousein public schema was updated. - 1 column
warehouse_locationwas deleted.
- 1 database
An addition is highlighted in green (+) and a deletion in red (−). An update is highlighted in amber (~): the old value is struck through under OLD VALUE and the new value is under NEW VALUE.