Skip to content

Commit d53d9b6

Browse files
committed
Updated the README.md according to @denizgolbas's changes.
1 parent a055bb2 commit d53d9b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ Schema::createPartitioned('[YourTableNameHere]', function (Blueprint $table) {
5858
- You shouldn't define any primary keys in your migration. The package creates a composite key while setting up the table.
5959
- You need to create an initial partition to start using the tables. (PostgreSQL)
6060

61+
```php
62+
Schema::attachPartition('[YourCreatedPartitionTableNameHere]', function (Blueprint $table) {}, '[SubfixForPartition]', '[StartDate]', '[EndDate]');
63+
```
64+
65+
#### OR
66+
6167
```php
6268
DB::statement("CREATE TABLE [partition_name_here] PARTITION OF [table_name_here] FOR VALUES FROM [starting_value_here] TO [end_value_here]");
6369
```

0 commit comments

Comments
 (0)