mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 11:52:39 +08:00
MAINT: Renames 'version' table to 'version_info' for clarity
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user