mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	* Added the queues and queue_members tables to the config alembic scripts. * Added the CDR table alembic creation script. The CDR table is more of an example for new setups since the actual table can be fully customized in cdr_adaptive_odbc.conf. (closes issue ASTERISK-23233) Reported by: jmls Review: https://reviewboard.asterisk.org/r/3227/ ........ Merged revisions 409885 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			23 lines
		
	
	
		
			412 B
		
	
	
	
		
			Mako
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			412 B
		
	
	
	
		
			Mako
		
	
	
	
	
	
"""${message}
 | 
						|
 | 
						|
Revision ID: ${up_revision}
 | 
						|
Revises: ${down_revision}
 | 
						|
Create Date: ${create_date}
 | 
						|
 | 
						|
"""
 | 
						|
 | 
						|
# revision identifiers, used by Alembic.
 | 
						|
revision = ${repr(up_revision)}
 | 
						|
down_revision = ${repr(down_revision)}
 | 
						|
 | 
						|
from alembic import op
 | 
						|
import sqlalchemy as sa
 | 
						|
${imports if imports else ""}
 | 
						|
 | 
						|
def upgrade():
 | 
						|
    ${upgrades if upgrades else "pass"}
 | 
						|
 | 
						|
 | 
						|
def downgrade():
 | 
						|
    ${downgrades if downgrades else "pass"}
 | 
						|
 |