You are here

public function WordPressAttachment::postRollback in WordPress Migrate 7

Same name and namespace in other branches
  1. 7.2 wordpress_attachment.inc \WordPressAttachment::postRollback()

Remove all attachment records

Overrides Migration::postRollback

File

./wordpress_attachment.inc, line 264

Class

WordPressAttachment
Implementation of WordPressMigration, for attachments

Code

public function postRollback() {
  db_delete('wordpress_migrate_attachment')
    ->condition('filename', $this->wxrFile)
    ->execute();
}