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

Migrating To SchemaHero: Generate table files from existing.sql files #1051

Open
tendaworld opened this issue Jan 25, 2024 · 0 comments
Open

Comments

@tendaworld
Copy link

Table File Generation
It is desirable to migrate from .SQL files containing statements that define a schema in CREATE TABLE syntax (DDL).

SchemaHero can generate table files from .SQL files. This would complement the existing feature where the migration from a database URI is already supported.

Running Migrations
You can generate table files from existing.sql files using the schemahero kubectl plugin.

Example:

$ kubectl schemahero generate \
  --input /path/to/existing.sql \
  --output . \
  --dbname my-database \
  --driver postgres
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

1 participant