migrations icon indicating copy to clipboard operation
migrations copied to clipboard

View/Trigger in database by migration

Open markstory opened this issue 7 years ago • 3 comments

From @AndreLZGava on January 15, 2018 18:58

This is a (multiple allowed):

  • [ ] bug

  • [ ] enhancement

  • [X] feature-discussion (RFC)

  • CakePHP Version: CakePHP3.4

  • Platform and Target: Linux, Postgres

What you did

I tried to create a migration that creates a view function in my database

What happened

I couldn't create

What you expected to happen

I expected to create a view function in my database, I'd like to create that functions as anot

P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow I tried to ask in stack, just a man answered my question, but the answer didn't help

Before you open an issue, please check if a similar issue already exists or has been closed before.

Copied from original issue: cakephp/cakephp#11632

markstory avatar Jan 15 '18 20:01 markstory

This might require changes in phinx as well. To my knowledge it does not support creating views outside of executing SQL either.

markstory avatar Jan 15 '18 20:01 markstory

I really need this. What's the work around so far?

sagittaracc avatar Feb 16 '21 14:02 sagittaracc

This could be revisited with https://github.com/cakephp/migrations/issues/647 done

dereuromark avatar Feb 21 '24 06:02 dereuromark