Skip to content

Commit

Permalink
Add migration for source column
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Apr 18, 2016
1 parent 0d9dc9a commit bb84dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.php
Expand Up @@ -14,6 +14,7 @@
title VARCHAR(100),
status VARCHAR(100),
location VARCHAR(100),
source VARCHAR(30),
article_timestamp VARCHAR(10),
PRIMARY KEY (guid))');
} catch (Exception $e) {
Expand Down Expand Up @@ -59,3 +60,5 @@
':article_timestamp' => $fire->date->format("U")
));
}
$db->query("DELETE FROM data WHERE guid LIKE 'http://sentinel.ga.gov.au/geoserver/wms/reflect?featureid=hotspot_current.fid%'");
$db->query("ALTER TABLE data ADD COLUMN `source` VARCHAR(30)");

0 comments on commit bb84dee

Please sign in to comment.