-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add feature: simple notify system. And some small bug fix.
- Loading branch information
Showing
21 changed files
with
555 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""empty message | ||
Revision ID: 2b5859bebcf1 | ||
Revises: 39c00b1bb40c | ||
Create Date: 2016-07-13 20:09:15.415683 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '2b5859bebcf1' | ||
down_revision = '39c00b1bb40c' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('notify', 'is_read') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('notify', sa.Column('is_read', mysql.TINYINT(display_width=1), autoincrement=False, nullable=True)) | ||
### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""empty message | ||
Revision ID: 39c00b1bb40c | ||
Revises: 59e062953154 | ||
Create Date: 2016-07-13 19:30:30.469749 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '39c00b1bb40c' | ||
down_revision = '59e062953154' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('notify', 'content') | ||
op.drop_column('users', 'use_avatar') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('users', sa.Column('use_avatar', mysql.TINYINT(display_width=1), autoincrement=False, nullable=True)) | ||
op.add_column('notify', sa.Column('content', mysql.TEXT(), nullable=True)) | ||
### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""empty message | ||
Revision ID: 8e75c327e44f | ||
Revises: 2b5859bebcf1 | ||
Create Date: 2016-07-14 12:11:38.471105 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8e75c327e44f' | ||
down_revision = '2b5859bebcf1' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import mysql | ||
|
||
def upgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('users', 'nickname') | ||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('users', sa.Column('nickname', mysql.VARCHAR(length=64), nullable=True)) | ||
### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.