migration: prepare 0.9
3 files changed, 11 insertions(+), 3 deletions(-)

M tshistory_refinery/__init__.py
M tshistory_refinery/migrate.py
M tshistory_refinery/tsio.py
M tshistory_refinery/__init__.py +1 -1
@@ 1,1 1,1 @@ 
-__version__ = '0.8.3'
+__version__ = '0.9.0'

          
M tshistory_refinery/migrate.py +9 -1
@@ 1,7 1,8 @@ 
 from tshistory.migrate import (
     fix_user_metadata,
     migrate_metadata,
-    Migrator as _Migrator
+    Migrator as _Migrator,
+    version
 )
 
 from tshistory_refinery import __version__

          
@@ 16,3 17,10 @@ class Migrator(_Migrator):
         print('initial migration')
         migrate_metadata(self.engine, f'{self.namespace}-cache', self.interactive)
         fix_user_metadata(self.engine, f'{self.namespace}-cache', self.interactive)
+
+
+@version('tshistory-refinery', '0.9.0')
+def migrate_revision_table(engine, namespace, interactive):
+    from tshistory.migrate import migrate_add_diffstart_diffend
+
+    migrate_add_diffstart_diffend(engine, f'{namespace}-cache', interactive)

          
M tshistory_refinery/tsio.py +1 -1
@@ 51,7 51,7 @@ class timeseries(xlts):
 
     def __init__(self, *a, **kw):
         super().__init__(*a, **kw)
-        self.cache = basets(namespace='{}-cache'.format(self.namespace))
+        self.cache = basets(namespace=f'{self.namespace}-cache')
 
     def _expanded_formula(self, cn, formula, stopnames=(), level=-1,
                           display=True, remote=True, qargs=None):