Conditional migration for that postgres command