Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Migration generator #16

Open
aleclarson opened this issue Sep 10, 2022 · 1 comment
Open

Migration generator #16

aleclarson opened this issue Sep 10, 2022 · 1 comment
Labels
enhancement New feature or request priority: high Guaranteed to be implemented soon

Comments

@aleclarson
Copy link
Contributor

Create a plugin package that adds triggers to system tables. These triggers will be used to track added/updated/renamed/deleted columns and such. This event data is used to generate migration scripts (written in TypeScript with Tusken 😄 ). Those migration scripts are used by tusken migrate to generate SQL for graphile-migrate.

For column type changes that require a handwritten expression, you can edit a migration script directly or add a blank one (should we recommend a VS Code plugin that can create a blank migration script from a pre-defined template?).

@aleclarson aleclarson added the enhancement New feature or request label Sep 10, 2022
@aleclarson
Copy link
Contributor Author

Possibly worth taking inspiration from pg-differ

@aleclarson aleclarson added the priority: high Guaranteed to be implemented soon label Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request priority: high Guaranteed to be implemented soon
Projects
None yet
Development

No branches or pull requests

1 participant