MAINT: Renames 'version' table to 'version_info' for clarity

This commit is contained in:
jfkirk
2015-11-10 10:51:53 -05:00
parent 6aac54544e
commit 85dd4b70dd
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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',
+1 -1
View File
@@ -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.