MCPcopy Create free account
hub / github.com/codemistic/Web-Development / process_revision_directives

Function process_revision_directives

Url Shortener/migrations/env.py:67–72  ·  view source on GitHub ↗
(context, revision, directives)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected