Commit 1aba44fa authored by EKbfh's avatar EKbfh 🐼
Browse files

Revert "Add migration for playbook url"

This reverts commit 3d756c07
parent a9d751e1
# Third-party modules
from peewee import CharField, Model
def migrate(migrator):
class Environment(Model):
class Meta(object):
database = migrator.db
db_table = "environment"
name = CharField(unique=True)
playbook_link = CharField()
if len(Environment.select()) != 0:
for env in Environment.select():
if env.playbook_link == 'git+https://github.com/nocproject/ansible_deploy@microservices':
env.playbook_link = "git+https://github.com/nocproject/noc@stable"
env.save()
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