Fixed an issue where collation was set to none if we remove it while creating partitioned table. #5820

This commit is contained in:
Pravesh Sharma 2023-04-13 13:27:16 +05:30 committed by GitHub
parent 9587d2bb3b
commit 288ba1d1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ class CollationView(PGChildNodeView, SchemaDiffObjectCompare):
as AJAX response.
"""
res = [{'label': '', 'value': ''}]
res = []
try:
SQL = render_template("/".join([self.template_path,
'get_collations.sql']))

View File

@ -1139,7 +1139,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
if row['key_type'] == 'column':
partition_scheme += self.qtIdent(
self.conn, row['pt_column'])
if 'collationame' in row:
if 'collationame' in row and row['collationame']:
partition_scheme += ' COLLATE %s' % row['collationame']
if 'op_class' in row: