diff options
author | Stephan Orbaugh <62374139+sorbaugh@users.noreply.github.com> | 2024-08-06 13:27:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 13:27:04 +0200 |
commit | 5c54a3caa752d2faa8363bf1c37658705864f729 (patch) | |
tree | 751b9ee771375a6ca8388d65c611327fac947b40 /core | |
parent | 7a7f259f3c3c3d9eb7e58d1e0f1ee93090582c80 (diff) | |
parent | 726b7a699572fc7329a0db22ec8279e0cdd901fc (diff) | |
download | nextcloud-server-5c54a3caa752d2faa8363bf1c37658705864f729.tar.gz nextcloud-server-5c54a3caa752d2faa8363bf1c37658705864f729.zip |
Merge pull request #46974 from nextcloud/fix/noid/add-metadata-to-migrationsteps
feat(migrations): add metadata to existing migrations
Diffstat (limited to 'core')
-rw-r--r-- | core/Migrations/Version30000Date20240429122720.php | 8 | ||||
-rw-r--r-- | core/Migrations/Version30000Date20240708160048.php | 5 | ||||
-rw-r--r-- | core/Migrations/Version30000Date20240717111406.php | 4 |
3 files changed, 17 insertions, 0 deletions
diff --git a/core/Migrations/Version30000Date20240429122720.php b/core/Migrations/Version30000Date20240429122720.php index 281ea1cfbd5..eeefc8dd10c 100644 --- a/core/Migrations/Version30000Date20240429122720.php +++ b/core/Migrations/Version30000Date20240429122720.php @@ -11,12 +11,20 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; +use OCP\Migration\Attributes\AddIndex; +use OCP\Migration\Attributes\CreateTable; +use OCP\Migration\Attributes\IndexType; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; /** * */ +#[CreateTable(table: 'taskprocessing_tasks')] +#[AddIndex(table: 'taskprocessing_tasks', type: IndexType::PRIMARY)] +#[AddIndex(table: 'taskprocessing_tasks', type: IndexType::INDEX)] +#[AddIndex(table: 'taskprocessing_tasks', type: IndexType::INDEX)] +#[AddIndex(table: 'taskprocessing_tasks', type: IndexType::INDEX)] class Version30000Date20240429122720 extends SimpleMigrationStep { /** diff --git a/core/Migrations/Version30000Date20240708160048.php b/core/Migrations/Version30000Date20240708160048.php index 0b5596a05a9..253b9cc7a64 100644 --- a/core/Migrations/Version30000Date20240708160048.php +++ b/core/Migrations/Version30000Date20240708160048.php @@ -11,12 +11,17 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; +use OCP\Migration\Attributes\AddColumn; +use OCP\Migration\Attributes\ColumnType; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; /** * */ +#[AddColumn(table: 'taskprocessing_tasks', name: 'scheduled_at', type: ColumnType::INTEGER)] +#[AddColumn(table: 'taskprocessing_tasks', name: 'started_at', type: ColumnType::INTEGER)] +#[AddColumn(table: 'taskprocessing_tasks', name: 'ended_at', type: ColumnType::INTEGER)] class Version30000Date20240708160048 extends SimpleMigrationStep { /** diff --git a/core/Migrations/Version30000Date20240717111406.php b/core/Migrations/Version30000Date20240717111406.php index 67293d8c1e7..558ac432387 100644 --- a/core/Migrations/Version30000Date20240717111406.php +++ b/core/Migrations/Version30000Date20240717111406.php @@ -11,12 +11,16 @@ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; +use OCP\Migration\Attributes\AddColumn; +use OCP\Migration\Attributes\ColumnType; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; /** * */ +#[AddColumn(table: 'taskprocessing_tasks', name: 'webhook_uri', type: ColumnType::STRING)] +#[AddColumn(table: 'taskprocessing_tasks', name: 'webhook_method', type: ColumnType::STRING)] class Version30000Date20240717111406 extends SimpleMigrationStep { /** |