Merge pull request #256 from flashbackzoo/pulls/fix-migration
Fix migration task
This commit is contained in:
commit
b80591afda
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue