~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/alembic/versions/f1f6b32242fe_add_welcome_emails_counter_to_users.py -rw-r--r-- 472 bytes
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Add welcome emails counter to users

Revision ID: f1f6b32242fe
Revises: 262b6b422637
Create Date: 2018-11-16 09:45:46.780305

"""

# revision identifiers, used by Alembic.
revision = 'f1f6b32242fe'
down_revision = '262b6b422637'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('welcome_emails',
        sa.Integer, nullable=False, server_default='0'))


def downgrade():
    op.drop_column('user', 'welcome_emails')