Let Django’s migration run raw SQL Leave a Comment / Non-Java Language / June 6, 2016 June 6, 2016 You’ve created a new column and you want set its value as the "id" column. What to do? Add the following line to the generated migration file or you can create new migration file migrations.RunSQL(sql="update some_table set new_column = id")