mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix migration script
This commit is contained in:
parent
4cdf11572a
commit
228e7159a5
@ -50,10 +50,9 @@ class BlogEntry extends BlogPost implements MigratableObject {
|
||||
|
||||
$this->PublishDate = $this->Date;
|
||||
|
||||
if($this->ClassName === 'BlogEntry') {
|
||||
$this->ClassName = 'BlogPost';
|
||||
}
|
||||
|
||||
$this->ClassName = 'BlogPost';
|
||||
$this->RecordClassName = 'BlogPost';
|
||||
|
||||
$this->write();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user