Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Drop table/column in Migration.

I am switching to Phalcon from Lavael. I was reading https://docs.phalconphp.com/en/latest/reference/migrations.html and did not see how to drop a table or column in the migration. In Laravel Schema::drop('users') drops a table and $table->dropColumn('votes') drops a column. How is this done in Phalcon's migrations?

Thank you.



99.6k
Accepted
answer
edited Jul '16

You can just access $this->_connection and use those methods here - https://docs.phalconphp.com/pl/latest/api/Phalcon_Db_AdapterInterface.html