Skip to content

Commit

Permalink
Update 2021-10-21-103415_create_rest_server_tables.php
Browse files Browse the repository at this point in the history
  • Loading branch information
daycry committed Feb 8, 2023
1 parent ec6b544 commit 1df691c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function up()
$this->forge->addKey('id', true);
$this->forge->addKey('checked_at');
$this->forge->addKey('deleted_at');
$this->forge->addKey('api_id');
$this->forge->addKey('controller', false, true);
$this->forge->addForeignKey('api_id', $this->config->restApiTable, 'id', 'RESTRICT', 'CASCADE');
$this->forge->createTable($this->config->restNamespaceTable, true);
Expand Down Expand Up @@ -117,6 +118,7 @@ public function up()
]);

$this->forge->addKey('id', true);
$this->forge->addKey('deleted_at');
$this->forge->addUniqueKey('key');

$this->forge->createTable($this->config->restKeysTable, true);
Expand Down

0 comments on commit 1df691c

Please # to comment.