(migrate & {:keys [recreate?]})
Migrates the database.
Migrates the database.
(register-migration! key attributes)
Takes a migration key and a list of attributes. Migrations can be replaced if the same migration key is used, but note that migrations will only run once during the lifetime of a database (hence you'd need to use (seed/seed :recreate? true) or an equivalent). This is why doing so generates a warning.
Takes a migration key and a list of attributes. Migrations can be replaced if the same migration key is used, but note that migrations will only run once during the lifetime of a database (hence you'd need to use (seed/seed :recreate? true) or an equivalent). This is why doing so generates a warning.
(register-migrations! migrations)
Same as calling register-migration! many times, but makes it clear that the migrations have a certain order
Same as calling register-migration! many times, but makes it clear that the migrations have a certain order
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close