Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\Phalcon\Db\ColumnInterface Type: BLOB? #424

Closed
mattvb91 opened this issue Jun 9, 2015 · 4 comments
Closed

\Phalcon\Db\ColumnInterface Type: BLOB? #424

mattvb91 opened this issue Jun 9, 2015 · 4 comments

Comments

@mattvb91
Copy link
Contributor

mattvb91 commented Jun 9, 2015

Have just noticed that when I am generating migrations on a table that includes a field of type BLOB/MEDIUMBLOB/LONGBLOB there is no such column on ColumnInterface.

Currently it looks like it will just default it to varchar. Am I missing something obvious?

@Green-Cat
Copy link

Phalcon does not have support for non-standard SQL types.
BLOB is MySQL specific.
Not sure if there is a work around.

@mattvb91
Copy link
Contributor Author

Would it be possible for me to write my own \Phalcon\Db\ColumnInterface\Mysql adapter and that then be included in the project?

The dev tools are written in php so I shouldn't need any C level coding?

@mattvb91
Copy link
Contributor Author

For anyone else that comes across this issue I have added a pull request to the main cphalcon repo.

phalcon/cphalcon#10506

If this goes in I will also push an update for migration generation blob support to this repo.
What is the procedure for updating IDE stubs?

@sergeyklay
Copy link
Contributor

Run

zephir stubs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants