mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	setting_dark_mode migration
This commit is contained in:
		
							
								
								
									
										30
									
								
								migrations/versions/66253783654f_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								migrations/versions/66253783654f_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 66253783654f
 | 
			
		||||
Revises: 7378391345fa
 | 
			
		||||
Create Date: 2020-04-27 08:26:19.772088
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '66253783654f'
 | 
			
		||||
down_revision = '7378391345fa'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('users', sa.Column('setting_dark_mode', sa.Boolean(), nullable=True))
 | 
			
		||||
    op.drop_column('users', 'is_dark')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('users', sa.Column('is_dark', sa.BOOLEAN(), autoincrement=False, nullable=True))
 | 
			
		||||
    op.drop_column('users', 'setting_dark_mode')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
		Reference in New Issue
	
	Block a user