mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Rename the 9.1_plus templates to "default" to more appropriately support Greenplum which is based on 8.3.
This commit is contained in:
parent
0da8d1fe4c
commit
6d05302ca1
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user