(context, revision, directives)
| 65 | # when there are no changes to the schema |
| 66 | # reference: http://alembic.zzzcomputing.com/en/latest/cookbook.html |
| 67 | def process_revision_directives(context, revision, directives): |
| 68 | if getattr(config.cmd_opts, 'autogenerate', False): |
| 69 | script = directives[0] |
| 70 | if script.upgrade_ops.is_empty(): |
| 71 | directives[:] = [] |
| 72 | logger.info('No changes in schema detected.') |
| 73 | |
| 74 | connectable = current_app.extensions['migrate'].db.get_engine() |
| 75 |
nothing calls this directly
no outgoing calls
no test coverage detected