mirror of
				https://github.com/StefBuwalda/ProjectIOT.git
				synced 2025-10-30 19:29:57 +00:00 
			
		
		
		
	123123123
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								migrations/versions/__pycache__/ac8b1871be3d_.cpython-313.pyc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								migrations/versions/__pycache__/ac8b1871be3d_.cpython-313.pyc
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -1,8 +1,8 @@ | ||||
| """empty message | ||||
| 
 | ||||
| Revision ID: 7a26306b04df | ||||
| Revision ID: ac8b1871be3d | ||||
| Revises:  | ||||
| Create Date: 2025-04-10 20:56:03.819230 | ||||
| Create Date: 2025-04-22 22:32:26.012696 | ||||
| 
 | ||||
| """ | ||||
| from alembic import op | ||||
| @@ -10,7 +10,7 @@ import sqlalchemy as sa | ||||
| 
 | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision = '7a26306b04df' | ||||
| revision = 'ac8b1871be3d' | ||||
| down_revision = None | ||||
| branch_labels = None | ||||
| depends_on = None | ||||
| @@ -18,10 +18,16 @@ depends_on = None | ||||
| 
 | ||||
| def upgrade(): | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     op.create_table('plate', | ||||
|     op.create_table('AllowedPlates', | ||||
|     sa.Column('id', sa.Integer(), nullable=False), | ||||
|     sa.Column('plate', sa.String(length=40), nullable=False), | ||||
|     sa.PrimaryKeyConstraint('id') | ||||
|     ) | ||||
|     op.create_table('LoggedItems', | ||||
|     sa.Column('dateLogged', sa.DateTime(), nullable=False), | ||||
|     sa.Column('allowed', sa.Boolean(), server_default=sa.text('0'), nullable=False), | ||||
|     sa.Column('id', sa.Integer(), nullable=False), | ||||
|     sa.Column('plate', sa.String(length=40), nullable=False), | ||||
|     sa.Column('dateLogged', sa.DateTime(), nullable=True), | ||||
|     sa.PrimaryKeyConstraint('id') | ||||
|     ) | ||||
|     # ### end Alembic commands ### | ||||
| @@ -29,5 +35,6 @@ def upgrade(): | ||||
| 
 | ||||
| def downgrade(): | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     op.drop_table('plate') | ||||
|     op.drop_table('LoggedItems') | ||||
|     op.drop_table('AllowedPlates') | ||||
|     # ### end Alembic commands ### | ||||
		Reference in New Issue
	
	Block a user