Coverage for /builds/BuildGrid/buildgrid/buildgrid/server/sql/alembic/versions/53e8b8b5bed6_add_inline_blob_support.py: 90.91%

11 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-10-04 17:48 +0000

1# Copyright (C) 2020 Bloomberg LP 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# <http://www.apache.org/licenses/LICENSE-2.0> 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14 

15"""Add inline blob support 

16 

17Revision ID: 53e8b8b5bed6 

18Revises: c64c104b2c8b 

19Create Date: 2022-05-19 14:58:32.569388 

20 

21""" 

22import sqlalchemy as sa 

23from alembic import op 

24 

25# revision identifiers, used by Alembic. 

26revision = "53e8b8b5bed6" 

27down_revision = "c64c104b2c8b" 

28branch_labels = None 

29depends_on = None 

30 

31 

32def upgrade() -> None: 

33 # ### commands auto generated by Alembic - please adjust! ### 

34 op.add_column("index", sa.Column("inline_blob", sa.LargeBinary(), nullable=True)) 

35 # ### end Alembic commands ### 

36 

37 

38def downgrade() -> None: 

39 # ### commands auto generated by Alembic - please adjust! ### 

40 op.drop_column("index", "inline_blob") 

41 # ### end Alembic commands ###