Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/Migration/Version032000Date20250109162434.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions lib/Migration/Version032001Date20250115164140.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/Migration/Version032002Date20250527174907.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down