File: 0006_customtablename.py

package info (click to toggle)
python-django-pgtrigger 4.15.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 956 kB
  • sloc: python: 4,412; makefile: 114; sh: 8; sql: 2
file content (27 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated by Django 3.2.3 on 2022-07-30 09:50

from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("tests", "0005_customsoftdelete"),
    ]

    operations = [
        migrations.CreateModel(
            name="CustomTableName",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
                    ),
                ),
                ("int_field", models.IntegerField(null=True, unique=True)),
            ],
            options={
                "db_table": "order",
            },
        ),
    ]