aerich icon indicating copy to clipboard operation
aerich copied to clipboard

No line breaks in a migration file generated by init-db command

Open izdwuut opened this issue 5 years ago • 1 comments

Hi!

Due to migration files being saved in JSON format, the string containing a query to be performed can be full of \n characters. This is a limitation of JSON, as it doesn't allow multiline strings. But how about using YAML or some other format? I believe it would greatly increase readability of migration files.

Normally I try to be more detailed with these reports, but I'm just drained after 8 hours of work. If my description is too vague, I'd happily provide more details.

izdwuut avatar Nov 12 '20 14:11 izdwuut

Yes, json format has limitation, I will consider to replace it.

long2ice avatar Nov 12 '20 14:11 long2ice