Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/54846/head
parent
bc2321db94
commit
c86f2e948a
@ -0,0 +1,27 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
namespace OCP\Migration\Attributes; |
||||
|
||||
use Attribute; |
||||
|
||||
/** |
||||
* attribute on new column creation |
||||
* |
||||
* @since 32.0.0 |
||||
*/ |
||||
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)] |
||||
class DataCleansing extends DataMigrationAttribute { |
||||
/** |
||||
* @return string |
||||
* @since 32.0.0 |
||||
*/ |
||||
public function definition(): string { |
||||
return 'Cleansing data from table \'' . $this->getTable() . '\''; |
||||
} |
||||
} |
@ -0,0 +1,17 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/** |
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
namespace OCP\Migration\Attributes; |
||||
|
||||
/** |
||||
* generic class related to migration attribute about data migration |
||||
* |
||||
* @since 32.0.0 |
||||
*/ |
||||
class DataMigrationAttribute extends MigrationAttribute { |
||||
} |
Loading…
Reference in new issue