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

🔧 Add script to adjust INCLUDE pgmigrations table #46

Closed
wants to merge 1 commit into from

Conversation

evans-g-crsj
Copy link
Contributor

Add script on startup that perform an sql query when INCLUDE project is run. The overhead of this script for other projects should be very small. When the script will have run for all INCLUDE environments then it can be removed.

In short, the query consists in renaming the current migrations in INCLUDE DB with the filenames in the migration folder of this repo. It is a matter of consistency.

await client.query(sQuery);
console.log('Done!');
} catch (err) {
console.error(err);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be interesting to revert the changes if any error occurs.

@celinepelletier celinepelletier deleted the adjust-for-include branch July 31, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants