// this looks like null, <repoid>, <read|visible|write>, user:<uid>|group:<gid>|authed|anon\r
// where authed = any authenticated user, anon = everyone (logged in, not logged in, etc)\r
// read|visible|write = can clone from repo|can see repo exists and see description but not clone from it|can push to repo\r
- // TODO: is this sufficient? i have to think about it\r
+ // TODO: is this sufficient? i have to think about it
+
+
+ // type for now will only be "git"
+ // date is obvious
+ // desc is a desction of the activity
+ // link is of the form "repo,reponame,repoid:user,username,useremail,userid" so it
+ // can be attached simply
+ // viewby is a simple list of uid's that should be able to see it... "r" for all registered
+ // "a" for everyone
+ $activitysql = '
+ CREATE TABLE "activity" (
+ "activity_type" TEXT,
+ "activity_date" TEXT,
+ "activity_desc" TEXT,
+ "activity_link" TEXT,
+ "activity_viewby" TEXT
+ )';\r
\r
$configsql = '\r
CREATE TABLE "config" (\r
$DB_CONNECTION->query($initialuser_admin);
$DB_CONNECTION->query($initialuser_user);
$DB_CONNECTION->query($reposql);\r
- $DB_CONNECTION->query($configsql);\r
+ $DB_CONNECTION->query($configsql);
+ $DB_CONNECTION->query($activitysql);\r
}
function gwvpmini_getConfigVal($confname)\r