Conceptually, no, it is impossible, because each migration assumes all migrations before it had happened. For example, if your migration's up()
script says:
ALTER TABLE
article
ALTER COLUMN
article_content nvarchar(4096)
… it assumes that there is a table article
which has a column article_content
, both of which had probably been defined in one or several previous migrations before it.
However, practically speaking, you can revert it separately if you can guarantee that no subsequent migration will ever depend on this one. Generally, you can't guarantee that, but there are exceptions. In this case, just execute the down()
script, and then delete the entry from the migrations table (usually, it is called migrations
).