Skip to content

Commit 81870da

Browse files
committed
Fix deprecated _initializeSchema
1 parent 495589f commit 81870da

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Model/Table/SocialProfilesTable.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,6 @@ public function initialize(array $config): void
4242
parent::initialize($config);
4343

4444
$this->addBehavior('Timestamp');
45-
}
46-
47-
/**
48-
* Set custom type of "access_token" column.
49-
*
50-
* @param \Cake\Database\Schema\TableSchemaInterface $schema The table definition fetched from database.
51-
* @return \Cake\Database\Schema\TableSchemaInterface
52-
*/
53-
protected function _initializeSchema(TableSchemaInterface $schema): TableSchemaInterface
54-
{
55-
$schema->setColumnType('access_token', 'social-auth.serialized');
56-
57-
return $schema;
45+
$schema->setColumnType('access_token', 'socialauth.serialize');
5846
}
5947
}

0 commit comments

Comments
 (0)