mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	alembic: Drop redundant voicemail_messages index.
The `voicemail_messages_dir` index is a left prefix of the table's primary key and therefore unnecessary.
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							e76f671810
						
					
				
				
					commit
					d856a3e2ef
				
			| @@ -0,0 +1,24 @@ | ||||
| """Drop redundant index | ||||
|  | ||||
| Revision ID: 64fae6bbe7fb | ||||
| Revises: 1c55c341360f | ||||
| Create Date: 2024-09-26 16:17:12.732445 | ||||
|  | ||||
| """ | ||||
|  | ||||
| # revision identifiers, used by Alembic. | ||||
| revision = '64fae6bbe7fb' | ||||
| down_revision = '1c55c341360f' | ||||
|  | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
|  | ||||
|  | ||||
| def upgrade(): | ||||
|     with op.batch_alter_table('voicemail_messages') as batch_op: | ||||
|         batch_op.drop_index('voicemail_messages_dir') | ||||
|  | ||||
|  | ||||
| def downgrade(): | ||||
|     with op.batch_alter_table('voicemail_messages') as batch_op: | ||||
|         batch_op.create_index('voicemail_messages_dir', ['dir']) | ||||
		Reference in New Issue
	
	Block a user