Skip to content

Commit a644fb9

Browse files
committed
chore: use new github specific highlight markup
1 parent a987499 commit a644fb9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ The following table contains all of the available trigger modifiers:
267267
| `->when('NEW.type = 4')`<br>`->when(fn ($query) => $query->where('NEW.type', 4))` | The trigger should only be called when the condition matches *(only with forEachRow)*. |
268268
| `->replace(true)` | The trigger will replace an existing one defined with the same name. |
269269

270-
> **Note**
270+
> [!NOTE]
271271
> PostgreSQL always updates rows even if nothing changed, which may affect your performance. You can add the `suppress_redundant_updates_trigger()` trigger with a `BEFORE UPDATE` action to all tables.
272272
273273
#### Drop Triggers
@@ -414,7 +414,7 @@ Schema::create('subscriptions', function(Blueprint $table) {
414414
});
415415
```
416416

417-
> **Note**
417+
> [!NOTE]
418418
> For this example you could also use a unique partial index on `user_id` with limiting the rows to `cancelled_at IS NOT NULL`.
419419
420420
#### Partial Indexes
@@ -540,7 +540,7 @@ Schema::create('products', function (Blueprint $table): void {
540540
});
541541
```
542542

543-
> **Note**
543+
> [!NOTE]
544544
> You can also utilize the domain type to use e.g. column types added by extensions or not yet supported by the package.
545545
546546
#### Altering Domain Types
@@ -681,7 +681,7 @@ The array data types store multiple values in one single column. They can be use
681681
$table->integerArray(string $column);
682682
```
683683

684-
> **Note**
684+
> [!NOTE]
685685
> While PostgreSQL array types are powerful, only the integer array is supported.
686686
> It is the sole array type with additional PostgreSQL enhancements for manipulation and querying compared to JSON columns.
687687
> The [intarray](https://www.postgresql.org/docs/current/intarray.html) extensions provides extensive features that can be used to e.g. [store and query tags](https://tapoueh.org/blog/2013/10/denormalizing-tags/) with advanced boolean logic.
@@ -719,7 +719,7 @@ The case insensitive text type is used to store a text that will be compared cas
719719
$table->caseInsensitiveText(string $column);
720720
```
721721

722-
> **Note**
722+
> [!NOTE]
723723
> You need to enable the `citext` extension with `Schema::createExtension('citext')` or `Schema::createExtensionIfNotExists('citext')` before.
724724
725725
#### Full Text Search
@@ -743,7 +743,7 @@ The hstore data type is used store key/value pairs within a single PostgreSQL va
743743
$table->hstore(string $column);
744744
```
745745

746-
> **Note**
746+
> [!NOTE]
747747
> You need to enable the `hstore` extension with `Schema::createExtensionIfNotExists('hstore')` or `Schema::createExtension('hstore')` before.
748748
749749
#### Identity
@@ -768,7 +768,7 @@ $table->internationalStandardSerialNumber13(string $column);
768768
$table->universalProductNumber(string $column);
769769
```
770770

771-
> **Note**
771+
> [!NOTE]
772772
> You need to enable the `isn` extension with `Schema::createExtensionIfNotExists('isn')` or `Schema::createExtension('isn')` before.
773773
774774
#### Label Tree
@@ -778,7 +778,7 @@ The ltree data type stores a label as its position in a tree. This provides an e
778778
$table->labelTree(string $column);
779779
```
780780

781-
> **Note**
781+
> [!NOTE]
782782
> You need to enable the `ltree` extension with `Schema::createExtensionIfNotExists('ltree')` or `Schema::createExtension('ltree')` before.
783783
784784
#### Vector
@@ -788,10 +788,10 @@ The vector type can be used to store and search for embeddings created by AI pro
788788
$table->vector(string $column, int $dimensions = 1536);
789789
```
790790

791-
> **Note**
791+
> [!NOTE]
792792
> You need to enable the `vector` extension with `Schema::createExtensionIfNotExists('vector')` or `Schema::createExtension('vector')` before.
793793
794-
> **Note**
794+
> [!NOTE]
795795
> The `vector` extension is not a standard PostgreSQL extension but available with most PostgreSQL cloud services.
796796
> You can check for support with the following query: `SELECT * FROM pg_available_extensions WHERE name = 'vector'`
797797
@@ -981,7 +981,7 @@ In addition to the basic form of a Common Table Expression these optional settin
981981
| cycle | `string` | Specify the automatic cycle detection settings for recursive queries. [(Documentation)](https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-CYCLE) |
982982
| search | `string` | Specify the tree search mode setting for recursive queries. [(Documentation)](https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-SEARCH) |
983983

984-
> **Note**
984+
> [!NOTE]
985985
> When you are using recursive CTEs **always** use the `cycle` option to prevent infinite running queries because of loops in the data.
986986
987987
### Lazy By Cursor
@@ -1216,7 +1216,7 @@ class Example extends Model
12161216
}
12171217
```
12181218

1219-
> **Warning**
1219+
> [!CAUTION]
12201220
> When you mix columns with and without milliseconds in a table, the columns without milliseconds may behave unexpectedly to you:
12211221
> Instead of truncating the milliseconds, they are rounded by PostgreSQL.
12221222
> When the value is rounded up, your timestamp will be in the future.

0 commit comments

Comments
 (0)