File: bef7bcaac3f2_make_id_a_bigint.py

package info (click to toggle)
python-pyfunceble 4.2.29.dev-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,108 kB
  • sloc: python: 27,413; sh: 142; makefile: 27
file content (71 lines) | stat: -rw-r--r-- 1,722 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""Make id a bigint.

Revision ID: bef7bcaac3f2
Revises: 3a4c55a9320d
Create Date: 2020-12-16 19:09:41.212679

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql

# pylint: skip-file

# revision identifiers, used by Alembic.
revision = "bef7bcaac3f2"
down_revision = "3a4c55a9320d"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "pyfunceble_continue",
        "id",
        existing_type=mysql.INTEGER(display_width=11),
        type_=sa.BigInteger(),
        autoincrement=True,
    )
    op.alter_column(
        "pyfunceble_inactive",
        "id",
        existing_type=mysql.INTEGER(display_width=11),
        type_=sa.BigInteger(),
        autoincrement=True,
    )
    op.alter_column(
        "pyfunceble_whois_record",
        "id",
        existing_type=mysql.INTEGER(display_width=11),
        type_=sa.BigInteger(),
        autoincrement=True,
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "pyfunceble_whois_record",
        "id",
        existing_type=sa.BigInteger(),
        type_=mysql.INTEGER(display_width=11),
        autoincrement=True,
    )
    op.alter_column(
        "pyfunceble_inactive",
        "id",
        existing_type=sa.BigInteger(),
        type_=mysql.INTEGER(display_width=11),
        autoincrement=True,
    )
    op.alter_column(
        "pyfunceble_continue",
        "id",
        existing_type=sa.BigInteger(),
        type_=mysql.INTEGER(display_width=11),
        autoincrement=True,
    )
    # ### end Alembic commands ###