View Source Plausible.DataMigration.VersionedSessions (Plausible v0.0.1)

!!!WARNING!!!: This script is used in migrations. Please take special care when altering it.

Sessions CollapsingMergeTree -> VersionedCollapsingMergeTree migration, SQL files available at:

priv/data_migrations/VersionedSessions/sql

Summary

Functions

Link to this function

confirm(message, func, default_choice \\ :yes)

View Source
Link to this function

do_run(name, query, options \\ [])

View Source
Link to this function

run_sql(name, assigns \\ [], options \\ [])

View Source

Runs a single SQL query in a file.

Valid options:

  • quiet - reduces output from running the SQL
  • params - List of query parameters.
  • query_options - passed to Repo.query
Link to this function

run_sql_confirm(name, assigns \\ [], options \\ [])

View Source
Link to this function

run_sql_multi(name, assigns \\ [], options \\ [])

View Source

Runs multiple SQL queries from a single file.

Note that each query must be separated by semicolons.

Link to this function

unwrap(name, assigns \\ [])

View Source