Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Dec 17, 2024
1 parent 96dfac9 commit 96e85db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/Icingadb/Model/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@
*/
class Schema extends Model
{
public function getTableName()
public function getTableName(): string
{
return 'icingadb_schema';
}

public function getKeyName()
public function getKeyName(): string
{
return 'id';
}

public function getColumns()
public function getColumns(): array
{
return [
'version',
'timestamp'
];
}

public function getDefaultSort()
public function getDefaultSort(): array
{
return ['timestamp desc'];
}

public function createBehaviors(Behaviors $behaviors)
public function createBehaviors(Behaviors $behaviors): void
{
$behaviors->add(new Binary(['id']));
$behaviors->add(new MillisecondTimestamp(['timestamp']));
Expand Down

0 comments on commit 96e85db

Please sign in to comment.