Is your feature request related to a problem? Please describe.
I wish to add a field like data = fields.JSONField(default=dict) and tweak SQL statement to make default not NULL. (with default '{}' in SQL statement)
Describe the solution you'd like
While this is possible to do manually now, I wish some command line options that populates ops.RunSQL instead of ops.AddField, so I don't need to run tortoise sqlmigrate and copy paste to migration file.
maybe tortoise makemigrations --raw or tortoise makemigrations --sql ?
Describe alternatives you've considered
Tweak the migration file manually, but would be quicker to do if I can have SQL statement generated with migration file.
Additional context
#2233
Is your feature request related to a problem? Please describe.
I wish to add a field like
data = fields.JSONField(default=dict)and tweak SQL statement to make default not NULL. (withdefault '{}'in SQL statement)Describe the solution you'd like
While this is possible to do manually now, I wish some command line options that populates
ops.RunSQLinstead ofops.AddField, so I don't need to runtortoise sqlmigrateand copy paste to migration file.maybe
tortoise makemigrations --rawortortoise makemigrations --sql?Describe alternatives you've considered
Tweak the migration file manually, but would be quicker to do if I can have SQL statement generated with migration file.
Additional context
#2233