-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding data from guadrian-apimaps-r69
- Loading branch information
Showing
31 changed files
with
3,491 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
all: | ||
mkdir -p templates/cache | ||
chmod a+rwX templates/cache | ||
mkdir -p tmp | ||
chmod a+rwX tmp | ||
cd lib && make all | ||
|
||
clean: | ||
rm -rf templates/cache | ||
rm -rf tmp | ||
cd lib && make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
DROP TABLE IF EXISTS points; | ||
|
||
CREATE TABLE points ( | ||
|
||
article_id INT UNSIGNED NOT NULL, | ||
woe_id INT UNSIGNED NOT NULL, | ||
|
||
latitude DOUBLE, | ||
longitude DOUBLE, | ||
|
||
# flickr | ||
place_id VARCHAR(32) NOT NULL, | ||
place_path VARCHAR(128), | ||
place_type VARCHAR(16), | ||
place_name VARCHAR(255), | ||
|
||
# who and when? | ||
visitor_id VARCHAR(16) NOT NULL, | ||
remote_addr VARCHAR(15), | ||
created TIMESTAMP, | ||
|
||
PRIMARY KEY (article_id, woe_id), | ||
INDEX place_id (place_id), | ||
INDEX place_path (place_path), | ||
INDEX location (latitude, longitude) | ||
|
||
) ENGINE=InnoDB, CHARACTER SET utf8; | ||
|
||
|
||
|
||
DROP TABLE IF EXISTS articles; | ||
|
||
CREATE TABLE articles ( | ||
|
||
id INT UNSIGNED NOT NULL PRIMARY KEY, | ||
|
||
# guardian | ||
title TEXT, | ||
published DATE, | ||
url VARCHAR(128), | ||
|
||
# derived from points table | ||
point_count INT UNSIGNED DEFAULT 0 | ||
|
||
) ENGINE=InnoDB, CHARACTER SET utf8; | ||
|
||
|
||
|
||
DROP TABLE IF EXISTS visitors; | ||
|
||
CREATE TABLE visitors ( | ||
|
||
id VARCHAR(16) NOT NULL PRIMARY KEY | ||
|
||
# presumably this gets expanded into a real users table at some later date | ||
|
||
) ENGINE=InnoDB, CHARACTER SET utf8; | ||
|
||
|
||
|
||
DROP TABLE IF EXISTS log; | ||
|
||
CREATE TABLE log ( | ||
|
||
visitor_id VARCHAR(16) NOT NULL, | ||
remote_addr VARCHAR(15), | ||
logged TIMESTAMP, | ||
message VARCHAR(128) | ||
|
||
) ENGINE=InnoDB, CHARACTER SET utf8; |
Oops, something went wrong.