diff --git a/tests/test_assets.py b/tests/test_assets.py index 3ca3b4ae..1c8b6a33 100644 --- a/tests/test_assets.py +++ b/tests/test_assets.py @@ -1095,7 +1095,7 @@ class TestAssetDBVersioning(TestCase): def test_check_version(self): env = TradingEnvironment(load=noop_load) - version_table = env.asset_finder.version + version_table = env.asset_finder.version_info # This should not raise an error check_version_info(version_table, ASSET_DB_VERSION) diff --git a/zipline/assets/asset_writer.py b/zipline/assets/asset_writer.py index 7d4b6011..543b53c2 100644 --- a/zipline/assets/asset_writer.py +++ b/zipline/assets/asset_writer.py @@ -34,7 +34,7 @@ SQLITE_MAX_VARIABLE_NUMBER = 999 AssetData = namedtuple('AssetData', 'equities futures exchanges root_symbols') # A list of the names of all tables in the assets db -table_names = ['version', 'equities', 'futures_exchanges', +table_names = ['version_info', 'equities', 'futures_exchanges', 'futures_root_symbols', 'futures_contracts', 'asset_router'] # Default values for the equities DataFrame @@ -221,7 +221,7 @@ def write_version_info(version_table, version_value): def _version_table_schema(metadata): return sa.Table( - 'version', + 'version_info', metadata, sa.Column( 'id', diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index f08c24d6..c1d593bd 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -87,7 +87,7 @@ class AssetFinder(object): setattr(self, table_name, metadata.tables[table_name]) # Check the version info of the db for compatibility - check_version_info(self.version, ASSET_DB_VERSION) + check_version_info(self.version_info, ASSET_DB_VERSION) # Cache for lookup of assets by sid, the objects in the asset lookup # may be shared with the results from equity and future lookup caches.