Skip to content

Commit 3a57833

Browse files
committed
fix: generate notification table command
1 parent 87cd8ac commit 3a57833

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Console/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ private function generate(): void
616616
{
617617
$action = $this->arg->getAction();
618618

619-
if (!in_array($action, ['key', 'resource', 'session-table', 'cache-table', 'queue-table'])) {
619+
if (!in_array($action, ['key', 'resource', 'notification-table', 'session-table', 'cache-table', 'queue-table'])) {
620620
$this->throwFailsCommand('This action is not exists', 'help generate');
621621
}
622622

src/Console/stubs/model/notification.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class {className} extends Migration
1616
$table->addString('concern_id');
1717
$table->addString('concern_type');
1818
$table->addText('data');
19-
$table->addDatetime('read_at', ['nullable' => true);
19+
$table->addDatetime('read_at', ['nullable' => true]);
2020
$table->addTimestamps();
2121
});
2222
}

0 commit comments

Comments
 (0)