album/migrations/2018-03-03-142213_photo_size/down.sql
Rasmus Kaj fc1ed81561 Store width and height of images.
Use it to calculate width and height of small images in lists.

Since the old database should be migratable to the new, the width and
height fields are nullable.  I aim to make them not nullable later,
after all images in the database has got width and height.
2018-03-05 00:29:39 +01:00

3 lines
77 B
SQL

ALTER TABLE photos DROP COLUMN width;
ALTER TABLE photos DROP COLUMN height;