Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[FR] Change migrations table name #1117

Closed
frederikhors opened this issue Oct 12, 2022 · 3 comments · Fixed by #1511
Closed

[FR] Change migrations table name #1117

frederikhors opened this issue Oct 12, 2022 · 3 comments · Fixed by #1511

Comments

@frederikhors
Copy link
Contributor

Hi guys, I searched all over the places but I cannot find any docs/post/issue on how to change migrations table name.

Now I'm using

Migrator::up(&postgres_connection, None).await.unwrap();

and it works: creates the table seaql_migrations.

How to change seaql_migrations table name to a custom one?

@teenjuna
Copy link
Contributor

Looks like it's hardcoded:

#[sea_orm(table_name = "seaql_migrations")]

@billy1624
Copy link
Member

Hey @frederikhors, sorry for the delay. @teenjuna is right. Now the name of the migration table is hardcoded. Can I ask why you want to customize the name of it?

@frederikhors
Copy link
Contributor Author

For security reasons.

@SeaQL SeaQL locked and limited conversation to collaborators Nov 6, 2022
@tyt2y3 tyt2y3 converted this issue into discussion #1197 Nov 6, 2022
@billy1624 billy1624 moved this from Triage to Done in SeaQL Dev Tracker Jan 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants