Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Aug 15, 2023
1 parent 897ce47 commit 6c66f54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ $schemaBuilder->create('user_items', function (Blueprint $table) {
$table->primary(['user_id', 'id']);

// interleaved table
$table->interleave('users')->cascadeOnDelete();
$table->interleaveInParent('users')->cascadeOnDelete();

// interleaved index
$table->index(['userId', 'created_at'])->interleave('users');
Expand All @@ -227,6 +227,9 @@ $schemaBuilder->create('user', function (Blueprint $table) {
});

$schemaBuilder->table('user', function (Blueprint $table) {
// add policy
$table->addRowDeletionPolicy('udpated_at', 100);

// replace policy
$table->replaceRowDeletionPolicy('udpated_at', 100);

Expand Down

0 comments on commit 6c66f54

Please sign in to comment.