Skip to content

Commit

Permalink
perf: not allow delete default region
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkaa committed Dec 11, 2024
1 parent ad62808 commit 9baa27c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_current_time():
def get_sql():
sql = 'INSERT INTO region_info (`region_id`,`region_name`,`region_alias`,`url`,`status`,`desc`,`wsurl`, \
`httpdomain`,`tcpdomain`,`scope`,`ssl_ca_cert`,`cert_file`,`key_file`,`create_time`) VALUES ("{0}", "rainbond", \
"默认集群", "{1}", "1", "当前集群是默认安装添加的集群", "{2}", "{3}", "{4}", "private", \
"默认集群", "{1}", "1", "当前集群是默认安装添加的集群", "{2}", "{3}", "{4}", "default", \
"{5}", "{6}", "{7}", "{8}" )'.format(get_region_id(), get_url(), get_wsurl(), get_http_domain(), get_tcp_domain(),
get_ssl_ca_cert(), get_cert_file(), get_key_file(), get_current_time())
print(sql)
Expand Down
2 changes: 1 addition & 1 deletion default_region_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_current_time():
def get_sql():
sql = 'INSERT INTO region_info (`region_id`,`region_name`,`region_alias`,`url`,`status`,`desc`,`wsurl`, \
`httpdomain`,`tcpdomain`,`scope`,`ssl_ca_cert`,`cert_file`,`key_file`,`create_time`) VALUES ("{0}", "rainbond", \
"内置集群", "{1}", "1", "当前集群是默认内置的集群", "{2}", "{3}", "{4}", "private", \
"内置集群", "{1}", "1", "当前集群是默认内置的集群", "{2}", "{3}", "{4}", "default", \
"{5}", "{6}", "{7}", "{8}" )'.format(get_region_id(), get_url(), get_wsurl(), get_http_domain(), get_tcp_domain(),
get_ssl_ca_cert(), get_cert_file(), get_key_file(), get_current_time())
print(sql)
Expand Down

0 comments on commit 9baa27c

Please sign in to comment.