mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-25 07:40:48 +08:00
The user should be able to add time dimensions using INTERVAL when the column type is TIMESTAMP/TIMESTAMPTZ/DATE, so this change adds that support. Additionally it adds some additional tests and checks for add_dimension, e.g., a nice error when the table is not a hypertable.
Folder for update SQL-scripts named pre-oldversion--newversion or post-oldversion--newversion
pre files are run before reloading the functions. These should include new tables, constraints, indexes, etc.
post functions are run after reloading the functions. These include any entities depending on functions-- e.g. triggers.
It is assumed that there is only one file for pre or post matching the newversion.