tpetry / laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features
MIT License
772 stars 31 forks source link

OidType? #58

Closed speckins closed 1 year ago

speckins commented 1 year ago

Would you accept a PR for adding the "oid" column type? (We needed it for holding a large object oid.)

tpetry commented 1 year ago

The oid type is a very specific construct and I will not add it as I believe it will be mis-used too much by developers not fully understanding it or the implications. But you can still use the oid type with the current release. I've added a note to the docs that you can use any unsupported type by pretending that is a domain type:

$table->domain('mycolumn', 'oid');
speckins commented 1 year ago

Oh, that's new (we're on 0.20.1). Good enough for me!