!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.3.29 

uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
x86_64
 

 

Safe-mode: OFF (not secure)

/opt/cloudlinux/venv/lib/python3.11/site-packages/pylint_django/tests/input/migrations/   drwxr-xr-x
Free 978.81 GB of 1859.98 GB (52.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     0002_new_column.py (1.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"""
Migration file which adds a new column with a default value.
This should trigger a warning because adding new columns with
default value on a large table leads to DB performance issues.

See:
https://github.com/PyCQA/pylint-django/issues/118 and
https://docs.djangoproject.com/en/2.0/topics/migrations/#postgresql

> ... adding columns with default values will cause a full rewrite of
> the table, for a time proportional to its size.
> For this reason, it’s recommended you always create new columns with
> null=True, as this way they will be added immediately.
"""
# pylint: disable=missing-docstring, invalid-name
from datetime import timedelta

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("input", "0001_noerror_initial"),
    ]

    operations = [
        # add a timedelta field
        migrations.AddField(  # [new-db-field-with-default]
            model_name="testrun",
            name="estimated_time",
            field=models.DurationField(default=timedelta(0)),
        ),
    ]

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0678 ]--