@@ -20,42 +20,22 @@ def upgrade():
2020 op .add_column ('button' , sa .Column ('order' , sa .Integer (), nullable = False ))
2121 op .add_column ('button' , sa .Column ('link' , sa .String (), nullable = False ))
2222 op .add_column ('button' , sa .Column ('type' , sa .String (), nullable = False ))
23- op .alter_column ('button' , 'name' ,
24- existing_type = sa .VARCHAR (),
25- nullable = False )
26- op .alter_column ('button' , 'category_id' ,
27- existing_type = sa .INTEGER (),
28- nullable = False )
29- op .alter_column ('button' , 'icon' ,
30- existing_type = sa .VARCHAR (),
31- nullable = False )
23+ op .alter_column ('button' , 'name' , existing_type = sa .VARCHAR (), nullable = False )
24+ op .alter_column ('button' , 'category_id' , existing_type = sa .INTEGER (), nullable = False )
25+ op .alter_column ('button' , 'icon' , existing_type = sa .VARCHAR (), nullable = False )
3226 op .add_column ('category' , sa .Column ('order' , sa .Integer (), nullable = False ))
33- op .alter_column ('category' , 'name' ,
34- existing_type = sa .VARCHAR (),
35- nullable = False )
36- op .alter_column ('category' , 'type' ,
37- existing_type = sa .VARCHAR (),
38- nullable = False )
27+ op .alter_column ('category' , 'name' , existing_type = sa .VARCHAR (), nullable = False )
28+ op .alter_column ('category' , 'type' , existing_type = sa .VARCHAR (), nullable = False )
3929
4030
4131def downgrade ():
4232 # ### commands auto generated by Alembic - please adjust! ###
43- op .alter_column ('category' , 'type' ,
44- existing_type = sa .VARCHAR (),
45- nullable = True )
46- op .alter_column ('category' , 'name' ,
47- existing_type = sa .VARCHAR (),
48- nullable = True )
33+ op .alter_column ('category' , 'type' , existing_type = sa .VARCHAR (), nullable = True )
34+ op .alter_column ('category' , 'name' , existing_type = sa .VARCHAR (), nullable = True )
4935 op .drop_column ('category' , 'order' )
50- op .alter_column ('button' , 'icon' ,
51- existing_type = sa .VARCHAR (),
52- nullable = True )
53- op .alter_column ('button' , 'category_id' ,
54- existing_type = sa .INTEGER (),
55- nullable = True )
56- op .alter_column ('button' , 'name' ,
57- existing_type = sa .VARCHAR (),
58- nullable = True )
36+ op .alter_column ('button' , 'icon' , existing_type = sa .VARCHAR (), nullable = True )
37+ op .alter_column ('button' , 'category_id' , existing_type = sa .INTEGER (), nullable = True )
38+ op .alter_column ('button' , 'name' , existing_type = sa .VARCHAR (), nullable = True )
5939 op .drop_column ('button' , 'type' )
6040 op .drop_column ('button' , 'link' )
6141 op .drop_column ('button' , 'order' )
0 commit comments