Fixed issue where MSQL for delete column was not generating. #5749

pull/6864/head
Pravesh Sharma 2023-10-16 15:04:31 +05:30 committed by GitHub
parent 47e734dbf2
commit eead9b77e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1270,7 +1270,8 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
c['schema'] = data['schema']
c['table'] = data['name']
# Sql for drop column
if 'inheritedfrom' not in c:
if 'inheritedfrom' not in c or \
('inheritedfrom' in c and c['inheritedfrom'] is None):
column_sql += render_template("/".join(
[self.column_template_path, self._DELETE_SQL]),
data=c, conn=self.conn).strip('\n') + \