MCPcopy Index your code

hub / github.com/miguelgrinberg/Flask-Migrate / functions

Functions92 in github.com/miguelgrinberg/Flask-Migrate

↓ 16 callersFunctionrun_cmd
Run a command and return a tuple with (stdout, stderr, exit_code)
tests/test_migrate.py:8
↓ 13 callersMethodget_config
(self, directory=None, x_arg=None, opts=None)
src/flask_migrate/__init__.py:84
↓ 10 callersMethodconfigure
(self, f)
src/flask_migrate/__init__.py:75
↓ 4 callersFunctionget_engine
(bind_key=None)
src/flask_migrate/templates/flask-multidb/env.py:21
↓ 4 callersFunctionget_engine
(bind_key=None)
src/flask_migrate/templates/aioflask-multidb/env.py:22
↓ 4 callersFunctionrun_cmd
Run a command and return a tuple with (stdout, stderr, exit_code)
tests/test_multidb_migrate.py:9
↓ 3 callersFunctionget_engine
()
src/flask_migrate/templates/aioflask/env.py:19
↓ 3 callersFunctionget_engine
()
src/flask_migrate/templates/flask/env.py:18
↓ 3 callersFunctionrun_cmd
Run a command and return a tuple with (stdout, stderr, exit_code)
tests/test_custom_template.py:8
↓ 2 callersMethodcall_configure_callbacks
(self, config)
src/flask_migrate/__init__.py:79
↓ 2 callersFunctionget_engine_url
(bind_key=None)
src/flask_migrate/templates/flask-multidb/env.py:30
↓ 2 callersFunctionget_engine_url
(bind_key=None)
src/flask_migrate/templates/aioflask-multidb/env.py:31
↓ 2 callersFunctionget_metadata
()
src/flask_migrate/templates/aioflask/env.py:49
↓ 2 callersFunctionget_metadata
Return the metadata for a bind.
src/flask_migrate/templates/flask-multidb/env.py:62
↓ 2 callersFunctionget_metadata
Return the metadata for a bind.
src/flask_migrate/templates/aioflask-multidb/env.py:64
↓ 2 callersFunctionget_metadata
()
src/flask_migrate/templates/flask/env.py:48
↓ 2 callersMethodget_template_directory
(self)
src/flask_migrate/__init__.py:37
↓ 1 callersFunctionget_engine_url
()
src/flask_migrate/templates/aioflask/env.py:28
↓ 1 callersFunctionget_engine_url
()
src/flask_migrate/templates/flask/env.py:27
↓ 1 callersMethodinit_app
(self, app, db=None, directory=None, command=None, compare_type=None, render_as_batch=None, *
src/flask_migrate/__init__.py:57
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
src/flask_migrate/templates/aioflask/env.py:55
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
src/flask_migrate/templates/flask-multidb/env.py:77
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
src/flask_migrate/templates/aioflask-multidb/env.py:79
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
src/flask_migrate/templates/flask/env.py:54
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
tests/custom_template/env.py:34
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
src/flask_migrate/templates/aioflask/env.py:101
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
src/flask_migrate/templates/flask-multidb/env.py:116
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
src/flask_migrate/templates/aioflask-multidb/env.py:172
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
src/flask_migrate/templates/flask/env.py:75
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
tests/custom_template/env.py:55
Method__init__
(self, migrate, db, **kwargs)
src/flask_migrate/__init__.py:17
Method__init__
(self, *args, **kwargs)
src/flask_migrate/__init__.py:33
Method__init__
(self, app=None, db=None, directory='migrations', command='db', compare_type=True, render_as_
src/flask_migrate/__init__.py:45
Functionadd
Add test user.
tests/app_custom_directory.py:23
Functionadd
Add test users.
tests/app_multidb.py:35
Functionadd
Add test user.
tests/app_custom_directory_path.py:24
Functionadd
Add test user.
tests/app.py:24
Methodatest_alembic_version
(self)
tests/test_migrate.py:50
Functionbranches
Show current branch points
src/flask_migrate/cli.py:220
Functionbranches
Show current branch points
src/flask_migrate/__init__.py:241
Functioncatch_errors
(f)
src/flask_migrate/__init__.py:107
Functioncheck
Check if there are any new operations to migrate
src/flask_migrate/cli.py:259
Functioncheck
Check if there are any new operations to migrate
src/flask_migrate/__init__.py:263
Functioncurrent
Display the current revision for each database.
src/flask_migrate/cli.py:230
Functioncurrent
Display the current revision for each database.
src/flask_migrate/__init__.py:248
Functiondb
Perform database migrations.
src/flask_migrate/cli.py:27
Functiondo_run_migrations
(connection)
src/flask_migrate/templates/aioflask/env.py:76
Functiondo_run_migrations
(_, engines)
src/flask_migrate/templates/aioflask-multidb/env.py:118
Functiondowngrade
Revert to a previous version
src/flask_migrate/cli.py:173
Functiondowngrade
Revert to a previous version
src/flask_migrate/__init__.py:204
Functionedit
Edit a revision file
src/flask_migrate/cli.py:121
Functionedit
Edit current revision.
src/flask_migrate/__init__.py:176
Functionheads
Show current available heads in the script directory
src/flask_migrate/cli.py:210
Functionheads
Show current available heads in the script directory
src/flask_migrate/__init__.py:233
Functionhistory
List changeset scripts in chronological order.
src/flask_migrate/cli.py:198
Functionhistory
List changeset scripts in chronological order.
src/flask_migrate/__init__.py:221
Functioninit
Creates a new migration repository.
src/flask_migrate/cli.py:51
Functioninit
Creates a new migration repository
src/flask_migrate/__init__.py:132
Functionlist_templates
List available templates.
src/flask_migrate/cli.py:35
Functionlist_templates
List available templates.
src/flask_migrate/__init__.py:119
Functionmerge
Merge two revisions together, creating a new revision file
src/flask_migrate/cli.py:137
Functionmerge
Merge two revisions together. Creates a new migration file
src/flask_migrate/__init__.py:187
Methodmetadata
Backwards compatibility, in old releases app.extensions['migrate'] was set to db, and env.py accessed app.extensions['migrate'].metad
src/flask_migrate/__init__.py:24
Functionmigrate
Autogenerate a new revision file (Alias for 'revision --autogenerate')
src/flask_migrate/cli.py:108
Functionmigrate
Alias for 'revision --autogenerate
src/flask_migrate/__init__.py:165
Functionprocess_revision_directives
(context, revision, directives)
src/flask_migrate/templates/aioflask/env.py:80
Functionprocess_revision_directives
(context, revision, directives)
src/flask_migrate/templates/flask-multidb/env.py:127
Functionprocess_revision_directives
(context, revision, directives)
src/flask_migrate/templates/aioflask-multidb/env.py:122
Functionprocess_revision_directives
(context, revision, directives)
src/flask_migrate/templates/flask/env.py:86
Functionprocess_revision_directives
(context, revision, directives)
tests/custom_template/env.py:66
Functionrevision
Create a new revision file.
src/flask_migrate/cli.py:79
Functionrevision
Create a new revision file.
src/flask_migrate/__init__.py:152
MethodsetUp
(self)
tests/test_custom_template.py:21
MethodsetUp
(self)
tests/test_migrate.py:21
MethodsetUp
(self)
tests/test_multidb_migrate.py:22
Functionshow
Show the revision denoted by the given symbol.
src/flask_migrate/cli.py:183
Functionshow
Show the revision denoted by the given symbol.
src/flask_migrate/__init__.py:214
Functionstamp
stamp' the revision table with the given revision; don't run any migrations
src/flask_migrate/cli.py:249
Functionstamp
stamp' the revision table with the given revision; don't run any migrations
src/flask_migrate/__init__.py:255
MethodtearDown
(self)
tests/test_custom_template.py:36
MethodtearDown
(self)
tests/test_migrate.py:36
MethodtearDown
(self)
tests/test_multidb_migrate.py:34
Methodtest_alembic_version
(self)
tests/test_custom_template.py:50
Methodtest_compare_type
(self)
tests/test_migrate.py:104
Methodtest_custom_directory
(self)
tests/test_migrate.py:76
Methodtest_custom_directory_path
(self)
tests/test_migrate.py:90
Methodtest_migrate_upgrade
(self)
tests/test_custom_template.py:56
Methodtest_migrate_upgrade
(self)
tests/test_migrate.py:56
Methodtest_multidb_migrate_upgrade
(self)
tests/test_multidb_migrate.py:45
Functionupgrade
Upgrade to a later version
src/flask_migrate/cli.py:155
Functionupgrade
Upgrade to a later version
src/flask_migrate/__init__.py:196
Functionwrapped
(*args, **kwargs)
src/flask_migrate/__init__.py:109