From 8abf954015933519b5279656b78a7663dcf26bbd Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Fri, 4 Nov 2022 15:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E4=B8=80=E6=B3=A2?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0024_alter_application_type.py | 18 ++++++++++++++++++ .../0093_alter_systemuser_protocol.py | 18 ++++++++++++++++++ .../migrations/0002_auto_20190729_1423.py | 2 +- .../migrations/0002_auto_20210909_1946.py | 2 +- .../0029_alter_applicationpermission_type.py | 18 ++++++++++++++++++ .../migrations/0054_alter_session_protocol.py | 18 ++++++++++++++++++ ..._alter_applyapplicationticket_apply_type.py | 18 ++++++++++++++++++ .../migrations/0003_auto_20180101_0046.py | 2 +- 8 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 apps/applications/migrations/0024_alter_application_type.py create mode 100644 apps/assets/migrations/0093_alter_systemuser_protocol.py create mode 100644 apps/perms/migrations/0029_alter_applicationpermission_type.py create mode 100644 apps/terminal/migrations/0054_alter_session_protocol.py create mode 100644 apps/tickets/migrations/0019_alter_applyapplicationticket_apply_type.py diff --git a/apps/applications/migrations/0024_alter_application_type.py b/apps/applications/migrations/0024_alter_application_type.py new file mode 100644 index 000000000..4f26e0905 --- /dev/null +++ b/apps/applications/migrations/0024_alter_application_type.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.14 on 2022-11-04 07:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('applications', '0023_auto_20220715_1556'), + ] + + operations = [ + migrations.AlterField( + model_name='application', + name='type', + field=models.CharField(choices=[('mysql', 'MySQL'), ('mariadb', 'MariaDB'), ('oracle', 'Oracle'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('redis', 'Redis'), ('mongodb', 'MongoDB'), ('clickhouse', 'ClickHouse'), ('chrome', 'Chrome'), ('mysql_workbench', 'MySQL Workbench'), ('vmware_client', 'vSphere Client'), ('custom', 'Custom'), ('k8s', 'Kubernetes')], max_length=16, verbose_name='Type'), + ), + ] diff --git a/apps/assets/migrations/0093_alter_systemuser_protocol.py b/apps/assets/migrations/0093_alter_systemuser_protocol.py new file mode 100644 index 000000000..963fe1fd9 --- /dev/null +++ b/apps/assets/migrations/0093_alter_systemuser_protocol.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.14 on 2022-11-04 07:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('assets', '0092_commandfilter_nodes'), + ] + + operations = [ + migrations.AlterField( + model_name='systemuser', + name='protocol', + field=models.CharField(choices=[('ssh', 'SSH'), ('rdp', 'RDP'), ('telnet', 'Telnet'), ('vnc', 'VNC'), ('mysql', 'MySQL'), ('oracle', 'Oracle'), ('mariadb', 'MariaDB'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('redis', 'Redis'), ('mongodb', 'MongoDB'), ('clickhouse', 'ClickHouse'), ('k8s', 'K8S')], default='ssh', max_length=16, verbose_name='Protocol'), + ), + ] diff --git a/apps/authentication/migrations/0002_auto_20190729_1423.py b/apps/authentication/migrations/0002_auto_20190729_1423.py index e117c8673..c4333f899 100644 --- a/apps/authentication/migrations/0002_auto_20190729_1423.py +++ b/apps/authentication/migrations/0002_auto_20190729_1423.py @@ -15,7 +15,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='accesskey', name='date_created', - field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2019, 7, 29, 6, 23, 54, 115123, tzinfo=utc)), + field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2019, 7, 29, 6, 23, 54, 115123, tzinfo=utc), verbose_name='Date created'), preserve_default=False, ), migrations.AddField( diff --git a/apps/notifications/migrations/0002_auto_20210909_1946.py b/apps/notifications/migrations/0002_auto_20210909_1946.py index 88610090d..fb48ced63 100644 --- a/apps/notifications/migrations/0002_auto_20210909_1946.py +++ b/apps/notifications/migrations/0002_auto_20210909_1946.py @@ -49,7 +49,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='usermsgsubscription', name='user', - field=models.OneToOneField(on_delete=common.db.models.CASCADE_SIGNAL_SKIP, related_name='user_msg_subscription', to=settings.AUTH_USER_MODEL), + field=models.OneToOneField(on_delete=common.db.models.CASCADE_SIGNAL_SKIP, related_name='user_msg_subscription', to=settings.AUTH_USER_MODEL, verbose_name='User'), ), migrations.RunPython(init_user_msg_subscription) ] diff --git a/apps/perms/migrations/0029_alter_applicationpermission_type.py b/apps/perms/migrations/0029_alter_applicationpermission_type.py new file mode 100644 index 000000000..a42fd1e71 --- /dev/null +++ b/apps/perms/migrations/0029_alter_applicationpermission_type.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.14 on 2022-11-04 07:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('perms', '0028_auto_20220316_2028'), + ] + + operations = [ + migrations.AlterField( + model_name='applicationpermission', + name='type', + field=models.CharField(choices=[('mysql', 'MySQL'), ('mariadb', 'MariaDB'), ('oracle', 'Oracle'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('redis', 'Redis'), ('mongodb', 'MongoDB'), ('clickhouse', 'ClickHouse'), ('chrome', 'Chrome'), ('mysql_workbench', 'MySQL Workbench'), ('vmware_client', 'vSphere Client'), ('custom', 'Custom'), ('k8s', 'Kubernetes')], max_length=16, verbose_name='Type'), + ), + ] diff --git a/apps/terminal/migrations/0054_alter_session_protocol.py b/apps/terminal/migrations/0054_alter_session_protocol.py new file mode 100644 index 000000000..fe0e859f4 --- /dev/null +++ b/apps/terminal/migrations/0054_alter_session_protocol.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.14 on 2022-11-04 07:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('terminal', '0053_auto_20221009_1755'), + ] + + operations = [ + migrations.AlterField( + model_name='session', + name='protocol', + field=models.CharField(choices=[('ssh', 'ssh'), ('rdp', 'rdp'), ('vnc', 'vnc'), ('telnet', 'telnet'), ('mysql', 'mysql'), ('oracle', 'oracle'), ('mariadb', 'mariadb'), ('sqlserver', 'sqlserver'), ('postgresql', 'postgresql'), ('redis', 'redis'), ('mongodb', 'MongoDB'), ('clickhouse', 'ClickHouse'), ('k8s', 'kubernetes')], db_index=True, default='ssh', max_length=16), + ), + ] diff --git a/apps/tickets/migrations/0019_alter_applyapplicationticket_apply_type.py b/apps/tickets/migrations/0019_alter_applyapplicationticket_apply_type.py new file mode 100644 index 000000000..c4c844f71 --- /dev/null +++ b/apps/tickets/migrations/0019_alter_applyapplicationticket_apply_type.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.14 on 2022-11-04 07:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tickets', '0018_applyapplicationticket_apply_actions'), + ] + + operations = [ + migrations.AlterField( + model_name='applyapplicationticket', + name='apply_type', + field=models.CharField(choices=[('mysql', 'MySQL'), ('mariadb', 'MariaDB'), ('oracle', 'Oracle'), ('postgresql', 'PostgreSQL'), ('sqlserver', 'SQLServer'), ('redis', 'Redis'), ('mongodb', 'MongoDB'), ('clickhouse', 'ClickHouse'), ('chrome', 'Chrome'), ('mysql_workbench', 'MySQL Workbench'), ('vmware_client', 'vSphere Client'), ('custom', 'Custom'), ('k8s', 'Kubernetes')], max_length=16, verbose_name='Type'), + ), + ] diff --git a/apps/users/migrations/0003_auto_20180101_0046.py b/apps/users/migrations/0003_auto_20180101_0046.py index 46a85be54..6795a1782 100644 --- a/apps/users/migrations/0003_auto_20180101_0046.py +++ b/apps/users/migrations/0003_auto_20180101_0046.py @@ -15,6 +15,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='user', name='is_first_login', - field=models.BooleanField(default=True), + field=models.BooleanField(default=True, verbose_name='Is first login'), ), ]