Familiar.update_view

You're seeing just the function update_view, go back to Familiar module for more information.
Link to this function

update_view(view_name, opts)

View Source

Updates a database view from a view definition file.

This function will drop the existing view and then create the new version of the view so dependant views, functions, triggers etc will need to be dropped first.

Options:

  • :version - the version of the updated view
  • :materialized - whether the view is materialized or not. Defaults to false.
  • :revert - the version to revert to if the migration is rolled back
  • :schema - the schema the view lives in. Uses default schema if not specified