Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Append branch.sql to schema.sql; #2006
Browse files Browse the repository at this point in the history
This time we also had a branch.py. I've noted where that was run.
  • Loading branch information
chadwhitacre committed Feb 27, 2014
1 parent 06e3608 commit 1ad8318
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 68 deletions.
47 changes: 0 additions & 47 deletions branch.py

This file was deleted.

21 changes: 0 additions & 21 deletions branch.sql

This file was deleted.

23 changes: 23 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1159,3 +1159,26 @@ BEGIN;
WITH FUNCTION load_participant_for_elsewhere(elsewhere);

END;


-------------------------------------------------------------------------------
-- https://github.com/gittip/www.gittip.com/pull/2006

BEGIN;
CREATE TABLE events
( id serial PRIMARY KEY
, ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
, type text NOT NULL
, payload json
);

CREATE INDEX events_ts ON events(ts ASC);
CREATE INDEX events_type ON events(type);

/* ran branch.py here, took forever :-/ */

DROP RULE log_api_key_changes ON participants;
DROP RULE log_goal_changes ON participants;
DROP TABLE goals, api_keys;

END;

0 comments on commit 1ad8318

Please sign in to comment.