-
Notifications
You must be signed in to change notification settings - Fork 28
Improve Schema Grammar #1527
Comments
@staudenmeir If you have time for this, I'd really appreciate your opinion and insights :) |
As a tangent remark: one part of the confusion sometimes is also the reliance on |
@mfn It would be good to improve that, but I'm not sure how feasible it is. The individual grammars do have lists of supported modifiers, maybe we can use them. We could also consider custom classes like |
MySQL:
PostgreSQL:
Code improvements:
|
I agree with @mfn, it would be nice if the column definitions didn't rely on |
I'm all up for improving the mechanics of the Grammar implementation but please note that in the first place this issue is for using correct types in the grammer column methods. We need to track down which ones need to be changed. |
@driesvints I think we should try to get this into 6.0. What other issues did you find? |
@staudenmeir I have to say my mind is a little bit vague about it since it's been a few months already.. Not sure if there have been more issues about this. I'm all up for improving this on the next release but probably won't have time myself. |
I just stumbled over https://github.com/PeeHaa/migres :
|
At the moment a lot of schema grammar's have certain implementation details which are a bit odd. For example, the MySQL grammar's float implementation points to a double which is a bit unwanted (see laravel/framework#3151). Judging from a first look at the other grammar's there are quite a few other ones which are a bit off.
We should take a thorough look at each grammar and try to pinpoint every obscure implementation and attempt to replace and fix it with its correct one if possible.
https://github.com/laravel/framework/tree/5.8/src/Illuminate/Database/Schema/Grammars
We have to be very careful here since changing any implementation here will affect every single app using the affected methods.
I'll try to update the issue description now and then below with the grammar's we've determined to be off. After we've pinpointed all of them we maybe can send in a PR to fix them.
Since at the moment my time is limited to work on this I'd appreciate any help with this if possible.
References:
The text was updated successfully, but these errors were encountered: