Skip to content

Commit

Permalink
Updated the README.md according to @denizgolbas's changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdaKaraderi committed Oct 8, 2022
1 parent a055bb2 commit d53d9b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ Schema::createPartitioned('[YourTableNameHere]', function (Blueprint $table) {
- You shouldn't define any primary keys in your migration. The package creates a composite key while setting up the table.
- You need to create an initial partition to start using the tables. (PostgreSQL)

```php
Schema::attachPartition('[YourCreatedPartitionTableNameHere]', function (Blueprint $table) {}, '[SubfixForPartition]', '[StartDate]', '[EndDate]');
```

#### OR

```php
DB::statement("CREATE TABLE [partition_name_here] PARTITION OF [table_name_here] FOR VALUES FROM [starting_value_here] TO [end_value_here]");
```
Expand Down

0 comments on commit d53d9b6

Please sign in to comment.