You are here

public function WordPressAttachment::postRollback in WordPress Migrate 7.2

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

Remove all attachment records

Overrides Migration::postRollback

File

./wordpress_attachment.inc, line 452

Class

WordPressAttachment
Implementation of WordPressMigration, for attachments

Code

public function postRollback() {
  db_delete('wordpress_migrate_attachment')
    ->condition('blog_id', $this->blog
    ->getBlogID())
    ->execute();
}