mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Because SQLite doesn't support full ALTER capabilities, alembic scripts
require batch operations.  However, that capability wasn't available until
0.7.0 which some distributions haven't reached yet.  Therefore, the batch
operations introduced in commit 86d6e44cc (review 2319) have been reverted
and SQLite is unsupported again, for now anyway.
Tested the full upgrade and downgrade on MySQL/Mariadb and Postgresql.
ASTERISK-25890 #close
Reported-by: Harley Peters
Change-Id: I82eba5456736320256f6775f5b0b40133f4d1c80
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			422 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """create accountcode
 | |
| 
 | |
| Revision ID: 1d50859ed02e
 | |
| Revises: 51f8cb66540e
 | |
| Create Date: 2014-07-07 21:07:01.661783
 | |
| 
 | |
| """
 | |
| 
 | |
| # revision identifiers, used by Alembic.
 | |
| revision = '1d50859ed02e'
 | |
| down_revision = '51f8cb66540e'
 | |
| 
 | |
| from alembic import op
 | |
| import sqlalchemy as sa
 | |
| 
 | |
| def upgrade():
 | |
|     op.add_column('ps_endpoints', sa.Column('accountcode', sa.String(20)))
 | |
| 
 | |
| def downgrade():
 | |
|     op.drop_column('ps_endpoints', 'accountcode')
 |