-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Import pre-migration data from an SQL file #81
Comments
Hello @vesnikos What do you mean by "sql extract"? SQL |
HI @skarzi , Yes, sorry. by If that's the case and could be done, it would be great there was a reference of such use case in the documentation. Using file-fixtures to populate the table makes sense if you have multiple tables and inputing mock data is cumbersome. For that case django already supports test fixtures, but now as I write this, I am kinda confused: in which state a test-fixture would be applied at? surely it should be the before-state right? |
It should be applied after calling Generally you can do whatever you want there, even load execute some raw SQL queries, however please remember that tables scheme can change, so you will have to version somehow your SQL files and solve some other challenges related to maintaining SQL files. |
Hi, is it possible to use an sql extract to test the migration procedure? ie
The text was updated successfully, but these errors were encountered: