Skip to content

Commit

Permalink
Fix misaligned formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Nov 6, 2024
1 parent 4b96a20 commit d506a3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jdbc/src/ragtime/jdbc.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

(defn- migrations-table-ddl [table-name]
(jdbc/create-table-ddl table-name
[[:id "varchar(255)" "primary key"]
[:created_at "varchar(32)"]]))
[[:id "varchar(255)" "primary key"]
[:created_at "varchar(32)"]]))

(defn- get-table-metadata* [^Connection conn]
(with-open [tables (-> conn
Expand Down Expand Up @@ -58,8 +58,8 @@
(ensure-migrations-table-exists db-spec migrations-table
migrations-table-exists-sql)
(jdbc/insert! db-spec migrations-table
{:id (str id)
:created_at (format-datetime (Date.))}))
{:id (str id)
:created_at (format-datetime (Date.))}))

(remove-migration-id [_ id]
(ensure-migrations-table-exists db-spec migrations-table
Expand All @@ -70,8 +70,8 @@
(ensure-migrations-table-exists db-spec migrations-table
migrations-table-exists-sql)
(jdbc/query db-spec
[(str "SELECT id FROM " migrations-table " ORDER BY created_at")]
{:row-fn :id})))
[(str "SELECT id FROM " migrations-table " ORDER BY created_at")]
{:row-fn :id})))

(defn sql-database
"Given a db-spec and a map of options, return a Migratable database.
Expand Down

0 comments on commit d506a3d

Please sign in to comment.