Skip to content

Commit

Permalink
Merge pull request #71 from tahabi/mirrors-sql-doc
Browse files Browse the repository at this point in the history
add mirrors SQL schema
  • Loading branch information
tahabi committed Jun 19, 2017
2 parents b9edf94 + 8ec282a commit 51d47b0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ocflib/lab/mirrors.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
--- documentation of `mirrors` table in ocfstats
--- other tables are defined in labstats/labstats/bin/init.py
---

CREATE TABLE `mirrors` (
`date` date NOT NULL,
`dist` varchar(30) NOT NULL,
`up` bigint(20) NOT NULL,
`down` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE VIEW `mirrors_public` AS
SELECT * FROM `mirrors`;

GRANT SELECT ON `ocfstats`.`mirrors_public` TO 'anonymous'@'%';

0 comments on commit 51d47b0

Please sign in to comment.