[asterisk-bugs] [JIRA] (ASTERISK-25890) Asterisk 13.8.0 alembic database update fails

Harley Peters (JIRA) noreply at issues.asterisk.org
Fri Apr 1 16:55:57 CDT 2016


Harley Peters created ASTERISK-25890:
----------------------------------------

             Summary: Asterisk 13.8.0 alembic database update fails
                 Key: ASTERISK-25890
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25890
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 13.8.0, 13.8.0-rc1
         Environment: Debian Jessie
            Reporter: Harley Peters


I get the following error when trying to update date the database via contrib/ast-db-manage/alembic -c config.ini upgrade head.
Every previous update has always worked any idea what is wrong.

OS=Debian Jessie, fully up to date.
alembic [0.6.5+ds-1]
python-sqlalchemy [0.9.8+dfsg-0.1]

INFO  [alembic.migration] Context impl MySQLImpl.
INFO  [alembic.migration] Will assume non-transactional DDL.
INFO  [alembic.migration] Running upgrade 2d078ec071b7 -> 26d7f3bf0fa5, add bind_rtp_to_media_address to pjsip
INFO  [alembic.migration] Running upgrade 26d7f3bf0fa5 -> 136885b81223, add regcontext to pjsip
INFO  [alembic.migration] Running upgrade 136885b81223 -> 423f34ad36e2, fix pjsip qualify timeout
Traceback (most recent call last):
  File "/usr/bin/alembic", line 9, in <module>
    load_entry_point('alembic==0.6.5', 'console_scripts', 'alembic')()
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 298, in main
    CommandLine(prog=prog).main(argv=argv)
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 293, in main
    self.run_cmd(cfg, options)
  File "/usr/lib/python2.7/dist-packages/alembic/config.py", line 279, in run_cmd
    **dict((k, getattr(options, k)) for k in kwarg)
  File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 125, in upgrade
    script.run_env()
  File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 203, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 212, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 58, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "config/env.py", line 74, in <module>
    run_migrations_online()
  File "config/env.py", line 67, in run_migrations_online
    context.run_migrations()
  File "<string>", line 7, in run_migrations
  File "/usr/lib/python2.7/dist-packages/alembic/environment.py", line 688, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/usr/lib/python2.7/dist-packages/alembic/migration.py", line 258, in run_migrations
    change(**kw)
  File "config/versions/423f34ad36e2_fix_pjsip_qualify_ti.py", line 17, in upgrade
    with op.batch_alter_table('ps_aors') as batch_op:
AttributeError: 'module' object has no attribute 'batch_alter_table' 




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list