Fix migration script

This commit is contained in:
David Craig 2015-05-26 11:40:39 +12:00
parent 4cdf11572a
commit 228e7159a5

View File

@ -50,10 +50,9 @@ class BlogEntry extends BlogPost implements MigratableObject {
$this->PublishDate = $this->Date; $this->PublishDate = $this->Date;
if($this->ClassName === 'BlogEntry') { $this->ClassName = 'BlogPost';
$this->ClassName = 'BlogPost'; $this->RecordClassName = 'BlogPost';
}
$this->write(); $this->write();
} }