-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: enable large file support in database
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
server/szurubooru/migrations/versions/c867abb456b1_support_large_file_uploads.py
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 @@ | ||
""" | ||
support large file uploads | ||
Revision ID: c867abb456b1 | ||
Created at: 2020-10-11 15:37:30.965231 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
revision = "c867abb456b1" | ||
down_revision = "c97dc1bf184a" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.alter_column( | ||
"post", "file_size", type_=sa.BigInteger, existing_type=sa.Integer | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.alter_column( | ||
"post", "file_size", type_=sa.Integer, existing_type=sa.BigInteger | ||
) |
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