I created the migration file:
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
I usually used this to creating tables or alter them . Is there a way to run an update query, something like:
UPDATE `mytable` SET `column` = 'test' WHERE `column` != 'test2';
and also the reverse of it. How can I do that?
Thank you!
[UPDATE
] I followed this post: Run raw SQL in migration , but there is no indication where should I add this update query or how to reverse it . Its about just altering a table