5
I am manipulating a Mysql database with Laravel 4. I want to know if there is any way to do a rollback in just one of the database tables. For example, my Migration included the tables x, y and z. I want to do a rollback only in table y. It is possible?
Hi @Amanda Lima, your question wouldn’t be about truncate? because the answer to that question was about truncate. If that’s the case, I’d like to edit your question. When you run a Rollback it undoes only the executed action in momenta, the truncate clears the entire table.
– Miguel Batista
Really @Miguelbatista. I don’t know if she’s referring to the method
down
, present in the migration classes ofLaravel
. But, if to analyze by the date answer, I think it has nothing to do with rollback. But remember, if you’re talking about the methoddown
from Migrations, so that’s right.– Wallace Maxters