Skip to content

Commit 08f9dca

Browse files
authored
Remove the unused columns from pypi#4581 (pypi#4582)
1 parent b66d929 commit 08f9dca

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
"""
13+
Remove unused columns
14+
15+
Revision ID: e82c3a017d60
16+
Revises: 62f6becc7653
17+
Create Date: 2018-08-17 16:23:08.775818
18+
"""
19+
20+
from alembic import op
21+
22+
23+
revision = "e82c3a017d60"
24+
down_revision = "62f6becc7653"
25+
26+
27+
def upgrade():
28+
op.drop_column("accounts_user", "is_staff")
29+
op.drop_column("packages", "hosting_mode")
30+
op.drop_column("packages", "autohide")
31+
op.drop_column("packages", "bugtrack_url")
32+
op.drop_column("packages", "comments")
33+
op.drop_column("packages", "stable_version")
34+
op.drop_column("release_files", "downloads")
35+
op.drop_column("releases", "description_from_readme")
36+
op.drop_column("releases", "_pypi_hidden")
37+
38+
39+
def downgrade():
40+
raise RuntimeError("Order No. 227 - Ни шагу назад!")

0 commit comments

Comments
 (0)