-
Notifications
You must be signed in to change notification settings - Fork 42
Doesn't work with PostgreSQL 12 #32
Comments
You are right about the fix. The other error is unrelated. |
@mfauveau How its unrelated? The error is about |
I'm wondering if you have a configuration problem. Did you manually register the service provider? There's no package discovery on this package, intentionally. That error message seems like a config issue, to me. It says the method doesn't exist in
Forgive me if I'm wrong, but I'd like to help support this in any way I can. |
Yes, I have registered the service provider. It works for MySQL without any issue. Error says the method doesn't exist, because it doesn't exists. The second error is another issue, which is what I'm actually asking for help. |
I'm actually sending a pull request for the first error in the next few minutes. I'm aware of the I added the pg support, so I feel some responsibility for this.
The |
Obviously PostgreSQL integration is not tested and its not complete, the driver name shouldn't be
|
Feel free to make a PR and write some tests for it. I may get to that someday. It works dandy on my systems, and once my PR from today is merged it will follow the Laravel default configuration. I admit I made a mistake, one which I have now fixed. |
@michaeldyrynda It does not fix the issue. You still need to use So please reopen this so everyone can see that package has problems with pgsql. |
I'm happy to accept a PR for this, but as I don't use PG myself, I've no mechanism to test it. |
I didn't say "fix this", I said reopen this so someone else can fix it. |
I'll handle this later today. |
You don't need this for PostgreSQL. The uuid type already used by Laravel is space-efficient! Internally, everything is stored as 16 byte data, just the representation in sql is a string for ease of use.
|
@tpetry Is the right path forward here that we:
|
It's a complicated question and i can't answer it for you. It's about how you want to handle compatibility.
By the way will MariaDB 10.7 will get a native uuid type too. I asked on twitter about efficient storage. And following their internal discussion seems to indicate that it will be space-efficient too. |
I'm using the latest v4.0.1 version of the package on Laravel 7.
I'm also using PostgreSQL 12.
When I try to migrate, I get this error:
Its probably because of this line expects the
postgres
name for driver, but Laravel 7 usespgsql
as driver name.I tried to change the name to
pgsql
, but then I get this error:cc @defenestrator
The text was updated successfully, but these errors were encountered: