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

Run migration on server startup independently. #111

Open
amandesai01 opened this issue Sep 2, 2024 · 5 comments · May be fixed by #125
Open

Run migration on server startup independently. #111

amandesai01 opened this issue Sep 2, 2024 · 5 comments · May be fixed by #125
Labels
good first issue Good for newcomers

Comments

@amandesai01
Copy link
Member

amandesai01 commented Sep 2, 2024

When server starts up, 1.on-startup.ts file runs which has a lot of startup logic. Update this to also run migrations.

@amandesai01 amandesai01 added the good first issue Good for newcomers label Sep 2, 2024
@karthik8239
Copy link
Contributor

can i pick this task @amandesai01

@shivam-sharma7
Copy link
Member

@amandesai01 I can't see any runmigration function to add in 1.on-startup.ts

@amandesai01
Copy link
Member Author

That will need to be written. It is directly available in drizzle docs.

@shivam-sharma7
Copy link
Member

@amandesai01 I have created a branch here shivam-sharma7@cbcc71b. please, can you pull my changes and test it?

@amandesai01
Copy link
Member Author

raise a draft PR

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

Successfully merging a pull request may close this issue.

3 participants