mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
Clean up migrations
This commit is contained in:
parent
0613571002
commit
0b610c6c1d
@ -1,8 +1,10 @@
|
||||
# Generated by Django 4.1.5 on 2023-01-27 18:15
|
||||
# Generated by Django 4.1.5 on 2023-02-01 20:27
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import taggit.managers
|
||||
import utilities.json
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@ -10,6 +12,7 @@ class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('extras', '0084_staging'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
@ -19,17 +22,18 @@ class Migration(migrations.Migration):
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
|
||||
('created', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('last_updated', models.DateTimeField(auto_now=True, null=True)),
|
||||
('custom_field_data', models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder)),
|
||||
('description', models.CharField(blank=True, max_length=200)),
|
||||
('comments', models.TextField(blank=True)),
|
||||
('name', models.CharField(max_length=100, unique=True)),
|
||||
('type', models.CharField(default='local', max_length=50)),
|
||||
('url', models.CharField(max_length=200)),
|
||||
('status', models.CharField(default='new', editable=False, max_length=50)),
|
||||
('enabled', models.BooleanField(default=True)),
|
||||
('description', models.CharField(blank=True, max_length=200)),
|
||||
('git_branch', models.CharField(blank=True, max_length=100)),
|
||||
('ignore_rules', models.TextField(blank=True)),
|
||||
('username', models.CharField(blank=True, max_length=100)),
|
||||
('password', models.CharField(blank=True, max_length=100)),
|
||||
('parameters', models.JSONField(blank=True, null=True)),
|
||||
('last_synced', models.DateTimeField(blank=True, editable=False, null=True)),
|
||||
('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
|
||||
],
|
||||
options={
|
||||
'ordering': ('name',),
|
||||
|
@ -1,30 +0,0 @@
|
||||
# Generated by Django 4.1.5 on 2023-01-30 21:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='datasource',
|
||||
name='git_branch',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='datasource',
|
||||
name='password',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='datasource',
|
||||
name='username',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='datasource',
|
||||
name='parameters',
|
||||
field=models.JSONField(blank=True, null=True),
|
||||
),
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Generated by Django 4.1.5 on 2023-02-01 20:04
|
||||
|
||||
from django.db import migrations, models
|
||||
import taggit.managers
|
||||
import utilities.json
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('extras', '0084_staging'),
|
||||
('core', '0002_remove_datasource_git_branch_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='datasource',
|
||||
name='custom_field_data',
|
||||
field=models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='datasource',
|
||||
name='tags',
|
||||
field=taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag'),
|
||||
),
|
||||
]
|
@ -1,18 +0,0 @@
|
||||
# Generated by Django 4.1.5 on 2023-02-01 20:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0003_datasource_custom_field_data_datasource_tags'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='datasource',
|
||||
name='comments',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user