(create-migration-table! db modify-sql-fn table-name)
Creates the schema for the migration table via t-con in db in table-name
Creates the schema for the migration table via t-con in db in table-name
(datetime-backend? db)
Checks whether the underlying backend requires the applied column to be of type datetime instead of timestamp.
Checks whether the underlying backend requires the applied column to be of type datetime instead of timestamp.
(migrate-up* db
{:keys [tx-handles-ddl?] :as config}
{:keys [name] :as migration})
(run-init-script! init-script-name init-script conn modify-sql-fn transaction?)
(table-exists? db table-name)
Checks whether the migrations table exists, by attempting to select from
it. Note that this appears to be the only truly portable way to determine
whether the table exists in a schema which the db
configuration will find
via a SELECT FROM
or INSERT INTO
the table. (In particular, note that
attempting to find the table in the database meta-data as exposed by the JDBC
driver does not tell you whether the table is on the current schema search
path.)
Checks whether the migrations table exists, by attempting to select from it. Note that this appears to be the only truly portable way to determine whether the table exists in a schema which the `db` configuration will find via a `SELECT FROM` or `INSERT INTO` the table. (In particular, note that attempting to find the table in the database meta-data as exposed by the JDBC driver does *not* tell you whether the table is on the current schema search path.)
(update-migration-table! db modify-sql-fn table-name)
Updates the schema for the migration table via t-con in db in table-name
Updates the schema for the migration table via t-con in db in table-name
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close