-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
313 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@File : challenge_deploy_type_enum.py | ||
@Date : 2024-06-27 | ||
""" | ||
|
||
class ChallengeDeployTypeEnum(object): | ||
""" | ||
验证文件部署方式 | ||
""" | ||
SSH = 0 | ||
|
||
DNS = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@File : ssl_deploy_type_enum.py | ||
@Date : 2024-06-27 | ||
""" | ||
|
||
class SSLDeployTypeEnum(object): | ||
""" | ||
ssl证书部署方式 | ||
""" | ||
SSH = 0 | ||
|
||
WEB_HOOK = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@File : valid_status_enum.py | ||
@Date : 2024-06-27 | ||
""" | ||
|
||
class ValidStatus(object): | ||
""" | ||
验证状态 | ||
""" | ||
PENDING = 'pending' | ||
|
||
VALID = 'valid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@File : migrate_1634_to_1635.py | ||
@Date : 2024-06-24 | ||
cmd: | ||
$ python domain_admin/migrate/migrate_1634_to_1635.py | ||
""" | ||
from __future__ import print_function, unicode_literals, absolute_import, division | ||
|
||
from domain_admin.migrate import migrate_common | ||
from domain_admin.model.base_model import db | ||
from domain_admin.model.issue_certificate_model import IssueCertificateModel, DeployStatusEnum | ||
|
||
|
||
def execute_migrate(): | ||
""" | ||
版本升级 1.6.34 => 1.6.35 | ||
:return: | ||
""" | ||
migrator = migrate_common.get_migrator(db) | ||
|
||
migrate_rows = [ | ||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.