summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-img_width.sql
blob: c99bd46d6c4cc90880773d6bbc40ea946b4e21ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- Extra image metadata, added for 1.5

-- NOTE: as by patch-img_media_type.sql, the img_type
-- column is no longer used and has therefore be removed from this patch

ALTER TABLE /*$wgDBprefix*/image ADD (
  img_width int(5) NOT NULL default 0,
  img_height int(5) NOT NULL default 0,
  img_bits int(5) NOT NULL default 0
);

ALTER TABLE /*$wgDBprefix*/oldimage ADD (
  oi_width int(5) NOT NULL default 0,
  oi_height int(5) NOT NULL default 0,
  oi_bits int(3) NOT NULL default 0
);