That worked, thanks. Thanks for the tip too..

On Sunday, December 29, 2013 2:25:48 PM UTC-5, Michael wrote:
>
> I have a models dir which contains a new .py which contains:
>
> bar -
>     |
>     models  -
>             |
>             -- __init__.py
>             -- auth.py        -- Users table, Activations table
>             -- applog.py      -- new file, Logging table
>
> when I run autogenerate this way:
>
> [hannam@mhanna (Sun Dec 29 12:07:52) ~/src/git/initpyr/bar_env/bar]% 
> ../bin/alembic -c development.ini revision --autogenerate -m "initializedb" 
>  
> 2013-12-29 12:08:24,239 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> PRAGMA table_info("alembic_version")
> 2013-12-29 12:08:24,239 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> ()
> 2013-12-29 12:08:24,240 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> SELECT alembic_version.version_num 
> FROM alembic_version
> 2013-12-29 12:08:24,240 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> ()
> 2013-12-29 12:08:24,240 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> SELECT name FROM  (SELECT * FROM sqlite_master UNION ALL   SELECT * FROM 
> sqlite_temp_master) WHERE type='table' ORDER BY name
> 2013-12-29 12:08:24,240 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> ()
> 2013-12-29 12:08:24,241 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> PRAGMA index_list("users")
> 2013-12-29 12:08:24,241 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> ()
> 2013-12-29 12:08:24,241 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> PRAGMA index_list("activations")
> 2013-12-29 12:08:24,241 INFO  [sqlalchemy.engine.base.Engine][MainThread] 
> ()
>   Generating 
> /Users/hannam/src/git/initpyr/bar_env/bar/bar/alembic/versions/47177ffef18e_initializedb.py
>  
> ... done
>
>
> Alembic doesn't appear to detect the new Logging table despite it 
> importing the bar.models __init__.py for Base and the env.py importing the 
> same file and containing `target_metadata = Base.metadata`
>
> Any suggestions?
>
> Michael
>
> 47177ffef18e_initializedb.py    -- http://pastebin.com/iHdSc4Wg
> development.ini                 -- http://pastebin.com/2pZ39KrE
> env.py                          -- http://pastebin.com/FLzqMJRv
> bar.models.__init__.py          -- http://pastebin.com/1aHyb6zr
> auth.py                         -- http://pastebin.com/4fQPVXpk
> applog.py                       -- http://pastebin.com/DeKPy5RQ
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to