File: 0011_auto_20220817_2211.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 (31 lines) | stat: -rw-r--r-- 856 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
28
29
30
31
# Generated by Django 3.2.15 on 2022-08-17 22:11

from django.db import migrations
from psqlextra.backend.migrations.operations import PostgresAddRangePartition


class Migration(migrations.Migration):
    dependencies = [
        ("tests", "0010_auto_20220817_2211"),
    ]

    operations = [
        PostgresAddRangePartition(
            model_name="partitionmodel",
            name="pt1",
            from_values="2019-01-01",
            to_values="2019-02-01",
        ),
        PostgresAddRangePartition(
            model_name="partitionmodel",
            name="pt2",
            from_values="2019-02-01",
            to_values="2019-03-01",
        ),
        PostgresAddRangePartition(
            model_name="partitionmodel",
            name="pt3",
            from_values="2019-03-01",
            to_values="2019-04-01",
        ),
    ]