Move foreign key templates into a default directory.

This commit is contained in:
Atira Odhner 2017-03-23 11:13:06 +00:00 committed by Dave Page
parent 720aefbe6f
commit 0ba0b25290
18 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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,