1. Michael Bayer
  2. alembic
  3. Issues

Issues

Issue #88 invalid

"`" characters stripped out of revision header docstring

smcoll
created an issue

Not sure if this is valid usage, but when i run $ alembic revision with the -m flag, any "`" character i type is stripped from the revision's header.

Example:

$ alembic revision -m "Remove mycol column from mytable table"

Results in:

"""Remove column from table

Revision ID: 7b52f2253da [...]

"""

Using 0.4.0.

Comments (2)

  1. Michael Bayer repo owner

    this isn't really on Alembic's end, its how your shell works:

    classics-MacBook-Pro:alembic classic$ .venv/bin/alembic revision -m "afasdkjn `akjsdf`  asdkjfadsjk"
    -bash: akjsdf: command not found
      Generating
      /Users/classic/dev/alembic/foo/versions/322dd2592b0b_afasdkjn_asdkjfadsjk.py...done
    

    escaping them with \ allows the word to render but the backticks disappear:

    classics-MacBook-Pro:alembic classic$ .venv/bin/alembic revision -m "afasdkjn \`akjsdf\`  asdkjfadsjk"
      Generating
      /Users/classic/dev/alembic/foo/versions/44c15265757b_afasdkjn_akjsdf_asdk.py...done
    
  2. Michael Bayer repo owner

    so, this is just shell stuff, I'm not sure how to get a backtick on the commandline to go into a python script, but figuring out that part would be how to make this work, but yeah a backtick is really the wrong kind of character to be using here.

  3. Log in to comment