[asterisk-dev] How are alembic scripts named?

Joshua C. Colp jcolp at digium.com
Wed Apr 17 09:01:00 CDT 2019


On Wed, Apr 17, 2019, at 10:58 AM, Dan Cropp wrote:
>  
> For a patch I’m working on, I need to add an alembic script.
> 
> It was recommended I use the following file as a reference  
> 2bb1a85135ad_pjsip_add_use_callerid_contact.py
> 
> 
> How is the Revision and Revises determined? Is this automatically 
> generated and added to the script when it’s uploaded?
> 
> Also, is the Create Date something I set or will this be automatically 
> generated when it’s uploaded?

The alembic tool[1] populates this information and creates the base file. You then have to fill it.

[1] https://alembic.sqlalchemy.org/en/latest/tutorial.html#create-a-migration-script

-- 
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list