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

How to customize table creation (migration) for partitioning and inherited tables #1356

Closed
aaronhudon opened this issue Apr 29, 2020 · 3 comments

Comments

@aaronhudon
Copy link

Can anyone shed light on the correct process of altering a table-creation in an EF core migration so that the table has partitioning and inherited tables?

@roji
Copy link
Member

roji commented Apr 30, 2020

Neither of these is currently implemented:

Note that you can set up table partitioning up yourself without any help from EF Core: just generate a migration to create your table, and then edit it and use raw SQL to add the necessary clause. You may be able to get away with it for PostgreSQL inheritance as well, but I'm not really sure.

@roji roji closed this as completed Apr 30, 2020
@aaronhudon
Copy link
Author

@roji thanks for the reply - shortly after posting this, I just went ahead and wrote the script by hand

@roji
Copy link
Member

roji commented Apr 30, 2020

Great, good to hear it worked out.

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

2 participants