Skip to content

Commit

Permalink
Fix schema default setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 19, 2024
1 parent d01cefd commit 434591f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/Model/Table/CaptchasTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,7 @@
class CaptchasTable extends Table {

/**
* @return \Cake\Database\Schema\TableSchemaInterface
*/
public function getSchema(): TableSchemaInterface {
$schema = parent::getSchema();
$schema->setColumnType('image', 'image');

return $schema;
}

/**
* Initialize method
*
* @param array $config The configuration for the Table.
* @param array<string, mixed> $config
* @return void
*/
public function initialize(array $config): void {
Expand All @@ -47,6 +35,8 @@ public function initialize(array $config): void {
$this->setPrimaryKey('id');

$this->addBehavior('Timestamp');

$this->getSchema()->setColumnType('image', 'image');
}

/**
Expand Down

0 comments on commit 434591f

Please sign in to comment.