Rename the 9.1_plus templates to "default" to more appropriately support Greenplum which is based on 8.3.

This commit is contained in:
George Gelashvili 2017-02-01 09:57:45 +00:00 committed by Dave Page
parent 0da8d1fe4c
commit 6d05302ca1
402 changed files with 108 additions and 46 deletions

View File

@ -201,7 +201,7 @@ class CastView(PGChildNodeView):
self.manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(kwargs['sid'])
self.conn = self.manager.connection(did=kwargs['did'])
# Set template path for the SQL scripts
self.template_path = 'cast/sql/9.1_plus'
self.template_path = 'cast/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)

View File

@ -220,7 +220,7 @@ class UserMappingView(PGChildNodeView):
self.conn = self.manager.connection(did=kwargs['did'])
# Set the template path for the SQL scripts
self.template_path = 'user_mappings/sql/9.1_plus'
self.template_path = 'user_mappings/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)

View File

@ -146,8 +146,9 @@ class CatalogObjectView(PGChildNodeView):
kwargs['sid']
)
self.conn = self.manager.connection(did=kwargs['did'])
self.template_path = 'catalog_object/sql/{0}/9.1_plus'.format(
'ppas' if self.manager.server_type == 'ppas' else 'pg'
self.template_path = 'catalog_object/sql/{0}/#{1}#'.format(
'ppas' if self.manager.server_type == 'ppas' else 'pg',
self.manager.version
)
return f(*args, **kwargs)

View File

@ -166,7 +166,7 @@ class CatalogObjectColumnsView(PGChildNodeView):
kwargs['sid']
)
self.conn = self.manager.connection(did=kwargs['did'])
self.template_path = 'catalog_object_column/sql/9.1_plus'
self.template_path = 'catalog_object_column/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)

View File

@ -186,7 +186,7 @@ class CollationView(PGChildNodeView):
)
self.conn = self.manager.connection(did=kwargs['did'])
# Set the template path for the SQL scripts
self.template_path = 'collation/sql/9.1_plus'
self.template_path = 'collation/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)
return wrap

View File

@ -230,7 +230,7 @@ class FtsConfigurationView(PGChildNodeView):
kwargs['sid'])
self.conn = self.manager.connection(did=kwargs['did'])
# Set the template path for the SQL scripts
self.template_path = 'fts_configuration/sql/9.1_plus'
self.template_path = 'fts_configuration/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)
return wrap

View File

@ -222,7 +222,7 @@ class FtsDictionaryView(PGChildNodeView):
kwargs['sid'])
self.conn = self.manager.connection(did=kwargs['did'])
# Set the template path for the SQL scripts
self.template_path = 'fts_dictionary/sql/9.1_plus'
self.template_path = 'fts_dictionary/sql/#{0}#'.format(self.manager.version)
return f(*args, **kwargs)
return wrap

Some files were not shown because too many files have changed in this diff Show More