Skip to content

Commit c246432

Browse files
authored
Merge pull request #1 from lara-zeus/update-migration
update migration
2 parents 843142f + babb577 commit c246432

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

config/zeus-delia.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<?php
22

3-
/*todo
4-
* render hook to show the dropdown list
5-
* render hook to show the bookmark toggle
6-
* a blade component
7-
* an action
8-
* multi tenant
9-
*/
10-
113
use Filament\Tables\View\TablesRenderHook;
124
use Filament\View\PanelsRenderHook;
135

database/migrations/create_bookmarks_table.php.stub

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ return new class extends Migration
1616
Schema::create(config('zeus-delia.table-prefix').'bookmarks', function (Blueprint $table) {
1717
$table->bigIncrements('id');
1818

19-
$table->string('bookmarkable_type');
19+
$table->string('bookmarkable_resource');
20+
$table->string('bookmarkable_page')->nullable();
2021
$table->integer('bookmarkable_id')->nullable();
2122

23+
$table->integer('user_id');
24+
2225
$table->timestamps();
2326
$table->softDeletes();
2427
});

0 commit comments

Comments
 (0)