Liking cljdoc? Tell your friends :D

metabase.db.migrations

Clojure-land data migration definitions and fns for running them. These migrations are all ran once when Metabase is first launched, except when transferring data from an existing H2 database. When data is transferred from an H2 database, migrations will already have been run against that data; thus, all of these migrations need to be repeatable, e.g.:

CREATE TABLE IF NOT EXISTS ... -- Good CREATE TABLE ... -- Bad

Clojure-land data migration definitions and fns for running them.
These migrations are all ran once when Metabase is first launched, except when transferring data from an existing
H2 database.  When data is transferred from an H2 database, migrations will already have been run against that data;
thus, all of these migrations need to be repeatable, e.g.:

   CREATE TABLE IF NOT EXISTS ... -- Good
   CREATE TABLE ...               -- Bad
raw docstring

DataMigrationsclj

(DataMigrations)
(DataMigrations id)
(DataMigrations & kvs)

Entity for 'data_migrations' table; instance of DataMigrationsInstance.

Entity for 'data_migrations' table; instance of DataMigrationsInstance.
sourceraw docstring

run-all!clj

(run-all!)

Run all data migrations defined by defmigration.

Run all data migrations defined by `defmigration`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close