Skip to content

Commit

Permalink
修复低版本升级到v1.6.35失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Jul 3, 2024
1 parent 0fbc222 commit 2393f67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions domain_admin/migrate/history/migrate_1633_to_1634.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ def execute_migrate():
field=IssueCertificateModel.version
),

# fix peewee.OperationalError: (1054, "Unknown column 't1.directory_type' in 'field list'")
# directory_type
migrator.add_column(
table=IssueCertificateModel._meta.table_name,
column_name=IssueCertificateModel.directory_type.name,
field=IssueCertificateModel.directory_type
),

# key_type
migrator.add_column(
table=IssueCertificateModel._meta.table_name,
column_name=IssueCertificateModel.key_type.name,
field=IssueCertificateModel.key_type
),
]

migrate_common.try_execute_migrate(migrate_rows)
Expand Down

0 comments on commit 2393f67

Please sign in to comment.