1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/peeringdb_server/migrations/0011_commandline_tool.py

66 lines
2.0 KiB
Python
Raw Normal View History

2018-11-08 19:45:21 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-08 10:34
2018-11-08 19:45:21 +00:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2019-12-05 16:57:52 +00:00
("peeringdb_server", "0010_rename_ixf_ixp_member_list_url"),
2018-11-08 19:45:21 +00:00
]
operations = [
migrations.CreateModel(
2019-12-05 16:57:52 +00:00
name="CommandLineTool",
2018-11-08 19:45:21 +00:00
fields=[
2019-12-05 16:57:52 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"tool",
models.CharField(
choices=[(b"pdb_renumber_lans", "Renumber IP Space")],
help_text="name of the tool",
max_length=255,
),
),
(
"arguments",
models.TextField(
help_text="json serialization of arguments and options passed"
),
),
(
"result",
models.TextField(blank=True, help_text="result log", null=True),
),
(
"created",
models.DateTimeField(
auto_now_add=True,
help_text=b"command was run at this date and time",
),
),
(
"user",
models.ForeignKey(
help_text=b"the user that ran this command",
on_delete=django.db.models.deletion.CASCADE,
related_name="clt_history",
to=settings.AUTH_USER_MODEL,
),
),
2018-11-08 19:45:21 +00:00
],
),
]