mirror of https://gitlab.com/tildes/tildes.git
Deimos
6 years ago
7 changed files with 73 additions and 7 deletions
-
24tildes/alembic/versions/1ade2bf86efc_comment_tags_add_reason_column.py
-
15tildes/static/js/behaviors/comment-tag-button.js
-
10tildes/tildes/enums.py
-
13tildes/tildes/models/comment/comment_tag.py
-
3tildes/tildes/schemas/comment.py
-
10tildes/tildes/templates/macros/comments.jinja2
-
5tildes/tildes/views/api/web/comment.py
@ -0,0 +1,24 @@ |
|||
"""comment_tags: add reason column |
|||
|
|||
Revision ID: 1ade2bf86efc |
|||
Revises: 1996feae620d |
|||
Create Date: 2018-09-18 20:44:19.357105 |
|||
|
|||
""" |
|||
from alembic import op |
|||
import sqlalchemy as sa |
|||
|
|||
|
|||
# revision identifiers, used by Alembic. |
|||
revision = "1ade2bf86efc" |
|||
down_revision = "1996feae620d" |
|||
branch_labels = None |
|||
depends_on = None |
|||
|
|||
|
|||
def upgrade(): |
|||
op.add_column("comment_tags", sa.Column("reason", sa.Text(), nullable=True)) |
|||
|
|||
|
|||
def downgrade(): |
|||
op.drop_column("comment_tags", "reason") |
Write
Preview
Loading…
Cancel
Save
Reference in new issue