diff --git a/README.md b/README.md index d6d6831..e084b9b 100644 --- a/README.md +++ b/README.md @@ -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]"); ```