You've already forked haproxy-wi
mirror of
https://github.com/roxy-wi/roxy-wi.git
synced 2025-12-15 11:54:05 +08:00
v8.2.6: Update version migrations and enhance install template options
- Added a new migration file to update the version to `8.2.6`. - Updated install templates to include new version options for HAProxy, Apache Exporter, and Node Exporter. - Modified default version in `ServerInstall` model to `3.3.0-1`.
This commit is contained in:
22
app/modules/db/migrations/v8_2_8_update_version.py
Normal file
22
app/modules/db/migrations/v8_2_8_update_version.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from playhouse.migrate import *
|
||||
from app.modules.db.db_model import connect, Version
|
||||
|
||||
migrator = connect(get_migrator=1)
|
||||
|
||||
|
||||
def up():
|
||||
"""Apply the migration."""
|
||||
try:
|
||||
Version.update(version='8.2.6').execute()
|
||||
except Exception as e:
|
||||
print(f"Error updating version: {str(e)}")
|
||||
raise e
|
||||
|
||||
|
||||
def down():
|
||||
"""Roll back the migration."""
|
||||
try:
|
||||
Version.update(version='8.2.5').execute()
|
||||
except Exception as e:
|
||||
print(f"Error rolling back migration: {str(e)}")
|
||||
raise e
|
||||
@@ -235,7 +235,7 @@ class ChannelRequest(BaseModel):
|
||||
class ServerInstall(BaseModel):
|
||||
id: int
|
||||
master: Optional[bool] = 0
|
||||
version: Optional[str] = '3.1.7-1'
|
||||
version: Optional[str] = '3.3.0-1'
|
||||
|
||||
|
||||
class ServiceInstall(BaseModel):
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
</td>
|
||||
<td class="padding10 first-collumn" style="width: 20%;">
|
||||
{% set values = dict() %}
|
||||
{% set values = {'2.6.14-1':'2.6.14-1','2.7.9-1':'2.7.9-1','2.8.1-1':'2.8.1-1','2.9.6-1':'2.9.6-1','3.0.10-1':'3.0.10-1','3.1.7-1':'3.1.7-1'} %}
|
||||
{{ select('hapver', values=values, selected='3.1.7-1', required='required') }}
|
||||
{% set values = {'2.7.9-1':'2.7.9-1','2.8.1-1':'2.8.1-1','2.9.6-1':'2.9.6-1','3.0.10-1':'3.0.10-1','3.1.7-1':'3.1.7-1','3.3.0-1':'3.3.0-1'} %}
|
||||
{{ select('hapver', values=values, selected='3.3.0-1', required='required') }}
|
||||
</td>
|
||||
<td class="padding10 first-collumn">
|
||||
<select autofocus required name="haproxyaddserv" id="haproxyaddserv">
|
||||
@@ -216,8 +216,8 @@
|
||||
<td id="cur_apache_exp_ver" class="padding10 first-collumn"></td>
|
||||
<td class="padding10 first-collumn" style="width: 20%;">
|
||||
{% set values = dict() %}
|
||||
{% set values = {'0.10.0':'0.10.0', '0.13.4':'0.13.4', '1.0.4':'1.0.4'} %}
|
||||
{{ select('apacheexpver', values=values, selected='1.0.4') }}
|
||||
{% set values = {'0.10.0':'0.10.0', '0.13.4':'0.13.4', '1.0.4':'1.0.4', '1.0.11':'1.0.11'} %}
|
||||
{{ select('apacheexpver', values=values, selected='1.0.11') }}
|
||||
</td>
|
||||
<td class="padding10 first-collumn">
|
||||
<select autofocus required name="apache_exp_addserv" id="apache_exp_addserv">
|
||||
@@ -274,8 +274,8 @@
|
||||
<td id="cur_node_exp_ver" class="padding10 first-collumn"></td>
|
||||
<td class="padding10 first-collumn" style="width: 20%;">
|
||||
{% set values = dict() %}
|
||||
{% set values = {'1.5.0':'1.5.0', '1.6.1':'1.6.1', '1.7.0':'1.7.0', '1.8.0':'1.8.0', '1.8.2':'1.8.2', '1.9.1':'1.9.1'} %}
|
||||
{{ select('nodeexpver', values=values, selected='1.8.2') }}
|
||||
{% set values = {'1.5.0':'1.5.0', '1.6.1':'1.6.1', '1.7.0':'1.7.0', '1.8.0':'1.8.0', '1.8.2':'1.8.2', '1.9.1':'1.9.1', '1.10.2':'1.10.2'} %}
|
||||
{{ select('nodeexpver', values=values, selected='1.10.2') }}
|
||||
</td>
|
||||
<td class="padding10 first-collumn">
|
||||
<select autofocus required name="node_exp_addserv" id="node_exp_addserv">
|
||||
|
||||
Reference in New Issue
Block a user