Commit 6e5a6ca6 authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

add migration. remove alerta url

parent f01983e2
from peewee import CharField
def migrate(migrator):
migrator.drop_column(
"environment",
"alerta_url"
),
migrator.drop_column(
"environment",
"alerta_token"
)
......@@ -90,8 +90,8 @@ class Migrator(object):
operation = self.migrator.add_column(table, name, field)
return operation.run()
def drop_column(self, table, name, field, cascade=True):
operation = self.migrator.drop_column(table, name, field, cascade=cascade)
def drop_column(self, table, field, cascade=True):
operation = self.migrator.drop_column(table, field, cascade=cascade)
return operation.run()
def rename_column(self, table, old_name, new_name):
......
......@@ -49,7 +49,9 @@ var environment_logic = {
mongo_password: "noc",
influxdb_db: "noc",
influxdb_user: "noc",
influxdb_password: "noc"
influxdb_password: "noc",
config_order: "legacy:///,yaml:///opt/noc/etc/settings.yml,env:///NOC",
name: "NOC"
});
},
......
......@@ -186,11 +186,11 @@ var environment_form = {
value: "eval"
},
{
placeholder: "legacy:///,yaml:///opt/noc/etc/settings.yml,env:///NOC",
view: "text",
name: "config_order",
label: "Config load preference",
required: true,
value: "legacy:///,yaml:///opt/noc/etc/settings.yml,env:///NOC"
required: true
}
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment