Skip to content

Commit

Permalink
Merge pull request #1371 from creative-commoners/pulls/6/depr-usertask
Browse files Browse the repository at this point in the history
API Deprecate UserFormsColumnCleanTask
  • Loading branch information
GuySartorelli authored Feb 19, 2025
2 parents b2e209a + d1e5e54 commit 3cdb4de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/Task/UserFormsColumnCleanTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SilverStripe\UserForms\Task;

use SilverStripe\Dev\Deprecation;
use SilverStripe\Dev\MigrationTask;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
Expand All @@ -13,6 +14,7 @@
* Column clean up tasks for Userforms
*
* @package userforms
* @deprecated 6.4.0 Will be removed without equivalent functionality to replace it
*/

class UserFormsColumnCleanTask extends MigrationTask
Expand All @@ -25,6 +27,12 @@ class UserFormsColumnCleanTask extends MigrationTask

protected $keepColumns = ['ID'];

public function __construct()
{
Deprecation::noticeWithNoReplacment('6.4.0', '', Deprecation::SCOPE_CLASS);
parent::__construct();
}

/**
* Publish the existing forms.
*/
Expand Down

0 comments on commit 3cdb4de

Please sign in to comment.