From d53d9b6149b844145128111837798f0cf29fb847 Mon Sep 17 00:00:00 2001 From: ardakaraderi Date: Sat, 8 Oct 2022 22:28:46 +0300 Subject: [PATCH] Updated the README.md according to @denizgolbas's changes. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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]"); ```