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

Commit

Permalink
Reformat schema.sql slightly (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Aug 20, 2012
1 parent 0105533 commit 8f494d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-------------------------------------------------------------------------------
-- million trillion trillion
-- | trillion trillion
-- | | trillion
Expand All @@ -8,6 +9,7 @@
-- numeric(35,2) maxes out at $999,999,999,999,999,999,999,999,999,999,999.00.


-------------------------------------------------------------------------------
-- Create the initial structure.

CREATE EXTENSION hstore;
Expand Down Expand Up @@ -92,24 +94,39 @@ CREATE TABLE exchanges
, participant_id text NOT NULL REFERENCES participants ON DELETE RESTRICT
);


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/128

ALTER TABLE participants ADD COLUMN anonymous bool NOT NULL DEFAULT FALSE;
ALTER TABLE participants DROP COLUMN shares_giving;


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/110

ALTER TABLE participants ADD COLUMN goal numeric(35,2) DEFAULT NULL;


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/78

ALTER TABLE participants ADD COLUMN balanced_account_uri text DEFAULT NULL;


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/161

ALTER TABLE participants ADD CONSTRAINT min_balance CHECK(balance >= 0);


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/35

ALTER TABLE participants ALTER COLUMN statement SET NOT NULL;


-------------------------------------------------------------------------------
-- https://github.com/whit537/www.gittip.com/issues/22

-- aggregate of the exchanges for paying out
Expand Down

0 comments on commit 8f494d9

Please sign in to comment.