Skip to content

Commit

Permalink
add migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jan 9, 2019
1 parent e5dc18f commit d7c8d77
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
19 changes: 19 additions & 0 deletions appconf/migrations/0003_remove_project_serverlist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-01-09 07:40
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('appconf', '0002_authinfo_deploy_port'),
]

operations = [
migrations.RemoveField(
model_name='project',
name='serverList',
),
]
22 changes: 22 additions & 0 deletions cmdb/migrations/0002_host_account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-01-09 07:40
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('appconf', '0003_remove_project_serverlist'),
('cmdb', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='host',
name='account',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='appconf.AuthInfo', verbose_name='\u8d26\u53f7\u4fe1\u606f'),
),
]
21 changes: 21 additions & 0 deletions delivery/migrations/0004_delivery_serverlist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-01-09 07:40
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('cmdb', '0002_host_account'),
('delivery', '0003_delivery_source_auth'),
]

operations = [
migrations.AddField(
model_name='delivery',
name='serverList',
field=models.ManyToManyField(blank=True, to='cmdb.Host', verbose_name='\u6240\u5728\u670d\u52a1\u5668'),
),
]

0 comments on commit d7c8d77

Please sign in to comment.