Skip to content

Commit d1e5e54

Browse files
committed
API Deprecate UserFormsColumnCleanTask
1 parent b2e209a commit d1e5e54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/Task/UserFormsColumnCleanTask.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace SilverStripe\UserForms\Task;
44

5+
use SilverStripe\Dev\Deprecation;
56
use SilverStripe\Dev\MigrationTask;
67
use SilverStripe\ORM\DataObject;
78
use SilverStripe\ORM\DB;
@@ -13,6 +14,7 @@
1314
* Column clean up tasks for Userforms
1415
*
1516
* @package userforms
17+
* @deprecated 6.4.0 Will be removed without equivalent functionality to replace it
1618
*/
1719

1820
class UserFormsColumnCleanTask extends MigrationTask
@@ -25,6 +27,12 @@ class UserFormsColumnCleanTask extends MigrationTask
2527

2628
protected $keepColumns = ['ID'];
2729

30+
public function __construct()
31+
{
32+
Deprecation::noticeWithNoReplacment('6.4.0', '', Deprecation::SCOPE_CLASS);
33+
parent::__construct();
34+
}
35+
2836
/**
2937
* Publish the existing forms.
3038
*/

0 commit comments

Comments
 (0)