Skip to content

Commit 0c7ede7

Browse files
committed
feat(db): Add column type guid
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 76dc4c7 commit 0c7ede7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/public/DB/Schema/ColumnType.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ enum ColumnType: string {
164164
*/
165165
case Json = 'json';
166166

167+
/**
168+
* If you want to store a GUID, you should consider using this type, as some database vendors have a native data type for this kind of data which offers the most efficient way to store it.
169+
* For vendors that do not support this type natively, this type is mapped to the string type internally.
170+
* Values retrieved from the database are always converted to PHP's string type or null if no data is present.
171+
*
172+
* @since 35.0.0
173+
*/
174+
case Guid = 'guid';
175+
167176
/**
168177
* @since 35.0.0
169178
*/

0 commit comments

Comments
 (0)