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

Commit

Permalink
Change delete to deactivate in 2 more places; #54
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Feb 28, 2013
1 parent 7f3e9ee commit d4bb7be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,16 @@ ALTER TABLE elsewhere ADD CONSTRAINT "elsewhere_platform_participant_id_key"
-------------------------------------------------------------------------------
-- https://github.com/zetaweb/www.gittip.com/issues/586

CREATE TABLE deletions
CREATE TABLE deactivations
( id serial PRIMARY KEY
, timestamp timestamp with time zone NOT NULL
DEFAULT CURRENT_TIMESTAMP

, deleted_was text NOT NULL
, deactivated_was text NOT NULL
-- Not a foreign key! This is soft-immutable.

, archived_as text NOT NULL
REFERENCES participants ON DELETE RESTRICT ON UPDATE RESTRICT
-- UPDATE RESTRICT is a sanity check: noone should be changing
-- participant_ids of deleted accounts.
-- UPDATE RESTRICT is a sanity check: no-one should be changing
-- participant_ids of deactivated accounts.
);
2 changes: 1 addition & 1 deletion templates/profile-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h2>Funding Goal
{% include "connected-accounts.html" %}


<!-- Delete! -->
<!-- Deactivate! -->
<h2>Deactivate Your Account(!)</h2>

<p><a href="deactivate.html">Read about</a> deactivating your account.</p>
Expand Down

0 comments on commit d4bb7be

Please sign in to comment.