mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-13 16:41:59 -05:00
Move foreign key templates into a default directory.
This commit is contained in:
1 parent
720aefbe6f
commit
0ba0b25290
18 files changed
+4
-4
No files matched your search
@@ -295,7 +295,7 @@ class TableView(PGChildNodeView, DataTypeReader, VacuumSettings):
|
||||
self.index_constraint_template_path = 'index_constraint/sql'
|
||||
|
||||
# Template for foreign key constraint node
|
||||
self.foreign_key_template_path = 'foreign_key/sql'
|
||||
self.foreign_key_template_path = 'foreign_key/sql/#{0}#'.format(ver)
|
||||
|
||||
# Template for index node
|
||||
self.index_template_path = 'index/sql/#{0}#'.format(ver)
|
||||
|
||||
+3
-3
@@ -234,7 +234,7 @@ class ForeignKeyConstraintView(PGChildNodeView):
|
||||
kwargs['sid']
|
||||
)
|
||||
self.conn = self.manager.connection(did=kwargs['did'])
|
||||
self.template_path = 'foreign_key/sql'
|
||||
self.template_path = 'foreign_key/sql/#{0}#'.format(self.manager.version)
|
||||
|
||||
# We need parent's name eg table name and schema name
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
@@ -369,7 +369,7 @@ class ForeignKeyConstraintView(PGChildNodeView):
|
||||
sid
|
||||
)
|
||||
self.conn = self.manager.connection(did=did)
|
||||
self.template_path = 'foreign_key/sql'
|
||||
self.template_path = 'foreign_key/sql/#{0}#'.format(self.manager.version)
|
||||
|
||||
# We need parent's name eg table name and schema name
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
@@ -485,7 +485,7 @@ class ForeignKeyConstraintView(PGChildNodeView):
|
||||
sid
|
||||
)
|
||||
self.conn = self.manager.connection(did=did)
|
||||
self.template_path = 'foreign_key/sql'
|
||||
self.template_path = 'foreign_key/sql/#{0}#'.format(self.manager.version)
|
||||
|
||||
# We need parent's name eg table name and schema name
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user