Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running migrate without the CLI #9

Closed
RickMeasham opened this issue May 20, 2020 · 2 comments
Closed

Running migrate without the CLI #9

RickMeasham opened this issue May 20, 2020 · 2 comments

Comments

@RickMeasham
Copy link

Is it possible to run pem migrate from python rather than from the CLI? My database is in RDS with no public access so I'd love to be able to trigger a migration from Lambda.

@aachurin
Copy link
Owner

aachurin commented May 21, 2020

Try these code:

from peewee_migrations import cli
cli.main(args=["migrate"], standalone_mode=False)

@aachurin aachurin closed this as completed Jun 4, 2020
@legioz
Copy link

legioz commented Jan 17, 2023

Try these code:

from peewee_migrations import cli
cli.main(args=["migrate"], standalone_mode=False)

This is not working in the latest version

Is there a workarround for the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants