diff --git a/lib/Migration/Version032000Date20250109162434.php b/lib/Migration/Version032000Date20250109162434.php index 591b490a..992394f4 100644 --- a/lib/Migration/Version032000Date20250109162434.php +++ b/lib/Migration/Version032000Date20250109162434.php @@ -11,9 +11,14 @@ use Closure; use OCP\DB\ISchemaWrapper; +use OCP\Migration\Attributes\ColumnType; +use OCP\Migration\Attributes\ModifyColumn; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; +#[ModifyColumn(table: 'ex_task_processing', name: 'name', type:ColumnType::STRING, description: 'enlarge field length to 255')] +#[ModifyColumn(table: 'ex_task_processing', name: 'display_name', type:ColumnType::STRING, description: 'enlarge field length to 255')] +#[ModifyColumn(table: 'ex_task_processing', name: 'task_type', type:ColumnType::STRING, description: 'enlarge field length to 255')] class Version032000Date20250109162434 extends SimpleMigrationStep { /** * @param IOutput $output diff --git a/lib/Migration/Version032001Date20250115164140.php b/lib/Migration/Version032001Date20250115164140.php index 04cb1cbe..ffa61d19 100644 --- a/lib/Migration/Version032001Date20250115164140.php +++ b/lib/Migration/Version032001Date20250115164140.php @@ -12,12 +12,21 @@ use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; +use OCP\Migration\Attributes\AddColumn; +use OCP\Migration\Attributes\AddIndex; +use OCP\Migration\Attributes\ColumnType; +use OCP\Migration\Attributes\IndexType; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; /** * Breaking changes migration refactoring UI tables (renames) */ +#[AddColumn('ex_deploy_options', 'id', ColumnType::BIGINT, 'advanced deploy options')] +#[AddColumn('ex_deploy_options', 'appid', ColumnType::STRING, 'advanced deploy options')] +#[AddColumn('ex_deploy_options', 'type', ColumnType::STRING, 'advanced deploy options')] +#[AddColumn('ex_deploy_options', 'value', ColumnType::JSON, 'advanced deploy options')] +#[AddIndex('ex_deploy_options', IndexType::UNIQUE, 'advanced deploy options')] class Version032001Date20250115164140 extends SimpleMigrationStep { /** * @param IOutput $output diff --git a/lib/Migration/Version032002Date20250527174907.php b/lib/Migration/Version032002Date20250527174907.php index b20c0c67..51c88bda 100644 --- a/lib/Migration/Version032002Date20250527174907.php +++ b/lib/Migration/Version032002Date20250527174907.php @@ -13,10 +13,13 @@ use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\IDBConnection; +use OCP\Migration\Attributes\AddColumn; +use OCP\Migration\Attributes\ColumnType; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; use OCP\Security\ICrypto; +#[AddColumn('preferences_ex', 'sensitive', ColumnType::SMALLINT, 'support sensitive setting')] class Version032002Date20250527174907 extends SimpleMigrationStep { public function __construct(