remove remaining references to now unused card_images table

This commit is contained in:
Gered 2016-06-29 09:59:09 -04:00
parent da74147af4
commit 2c419eeab9
3 changed files with 0 additions and 20 deletions

View file

@ -1 +0,0 @@
DROP TABLE IF EXISTS card_images;

View file

@ -1,10 +0,0 @@
CREATE TABLE card_images (
id SERIAL PRIMARY KEY,
card_id TEXT NOT NULL,
image_name TEXT NOT NULL,
image_bytes BYTEA,
mimetype TEXT
);
ALTER TABLE ONLY card_images ADD CONSTRAINT card_images_card_id_fkey FOREIGN KEY (card_id) REFERENCES cards (id) ON DELETE CASCADE;
CREATE INDEX card_images_card_id_idx ON card_images (card_id);

View file

@ -11,15 +11,6 @@
where id = ?" card-id]
{:result-set-fn first}))
(defn get-card-db-image
[card-id]
(let [result (sql/query @db ["select image_bytes, mimetype
from card_images
where card_id = ?" card-id]
{:result-set-fn first})]
(if (:image_bytes result)
result)))
(defn get-matching-card-ids
[card-name set-code & [{:keys [split? normalized-name? number]}]]
(let [q {:select [:id]