Skip to content

Commit

Permalink
Document "algorithm" parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Oct 21, 2024
1 parent efcaef1 commit 36cc6c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ $query = DB::table('users')->where('active', true);
Schema::createOrReplaceView('active_users', $query);
```

#### View Processing Algorithm

On MySQL and MariaDB, you can specify the view processing algorithm:

```php
use Staudenmeir\LaravelMigrationViews\Facades\Schema;

$query = DB::table('users')->where('active', true);

Schema::createView('active_users', $query, algorithm: 'TEMPTABLE');
```

### Renaming Views

Use `renameView()` to rename a view:
Expand Down

0 comments on commit 36cc6c1

Please sign in to comment.