Skip to content

Commit a867ff8

Browse files
committed
feat(migration-attributes): missing attributes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent c86f2e9 commit a867ff8

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

apps/cloud_federation_api/lib/Migration/Version1016Date202502262004.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
use Closure;
1313
use OCP\DB\ISchemaWrapper;
1414
use OCP\DB\Types;
15+
use OCP\Migration\Attributes\CreateTable;
1516
use OCP\Migration\IOutput;
1617
use OCP\Migration\SimpleMigrationStep;
1718

19+
#[CreateTable(table: 'federated_invites', columns: ['id', 'user_id', 'recipient_provider', 'recipient_user_id', 'recipient_name', 'recipient_email', 'token', 'accepted', 'created_at', 'expired_at', 'accepted_at'], description: 'Supporting the OCM Invitation Flow feature')]
1820
class Version1016Date202502262004 extends SimpleMigrationStep {
1921
/**
2022
* @param IOutput $output

apps/dav/lib/Migration/Version1034Date20250605132605.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
use Closure;
1313
use OCP\DB\ISchemaWrapper;
1414
use OCP\DB\Types;
15+
use OCP\Migration\Attributes\AddColumn;
16+
use OCP\Migration\Attributes\ColumnType;
17+
use OCP\Migration\Attributes\CreateTable;
1518
use OCP\Migration\IOutput;
1619
use OCP\Migration\SimpleMigrationStep;
1720

21+
#[AddColumn(table: 'dav_shares', name: 'token', type: ColumnType::STRING)]
22+
#[CreateTable(table: 'calendars_federated', columns: ['id', 'display_name', 'color', 'uri', 'principaluri', 'remote_Url', 'token', 'sync_token', 'last_sync', 'shared_by', 'shared_by_display_name', 'components', 'permissions'], description: 'Supporting Federated Calender')]
1823
class Version1034Date20250605132605 extends SimpleMigrationStep {
1924
/**
2025
* @param IOutput $output

apps/dav/lib/Migration/Version1034Date20250813093701.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
use OCP\DB\ISchemaWrapper;
1414
use OCP\DB\QueryBuilder\IQueryBuilder;
1515
use OCP\IDBConnection;
16+
use OCP\Migration\Attributes\DataCleansing;
1617
use OCP\Migration\IOutput;
1718
use OCP\Migration\SimpleMigrationStep;
1819
use Override;
1920

21+
#[DataCleansing(table: 'properties', description: 'remove commonly used custom properties set as default')]
2022
class Version1034Date20250813093701 extends SimpleMigrationStep {
2123
public function __construct(
2224
private IDBConnection $db,

0 commit comments

Comments
 (0)