[asterisk-dev] How are alembic scripts named?

Dan Cropp dan at amtelco.com
Wed Apr 17 09:17:53 CDT 2019

Thank you Joshua.

Alembic is not one of the packages installed on my VM.  When I look at install_prereq, I do not see it in there.
Is there asterisk related documentation on alembic?

I installed the alembic and alembic3 packages based on Linux output

alembic revision -m "pjsip add norefersub"
The program 'alembic' can be found in the following packages:
 * python-alembic
 * python3-alembic
Try: sudo apt install <selected package>

However, after this, I am receiving an error indicating no alembic.ini file

alembic revision -m "pjsip add norefersub"
  FAILED: No config file 'alembic.ini' found, or file has no '[alembic]' section

Any suggestions as to where to find asterisk instructions for alembic?

-----Original Message-----
From: asterisk-dev <asterisk-dev-bounces at lists.digium.com> On Behalf Of Joshua C. Colp
Sent: Wednesday, April 17, 2019 9:01 AM
To: asterisk-dev at lists.digium.com
Subject: Re: [asterisk-dev] How are alembic scripts named?

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

-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:

More information about the asterisk-dev mailing list