diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-13 10:50:48 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-16 10:58:20 +0000 |
commit | 3796842153839b0c75f85ec8c4b2bbba60963ff3 (patch) | |
tree | ad98528bb232cae1a9f0ee852c5c36ee99193f86 /db | |
parent | fcd9f9943059d6f70091951c576e704e5d80b7f1 (diff) |
Store more original stuff on moderation.
Diffstat (limited to 'db')
-rw-r--r-- | db/downgrade_0063---0062.sql | 8 | ||||
-rw-r--r-- | db/schema.sql | 7 | ||||
-rw-r--r-- | db/schema_0063-add-extra-to-moderation.sql | 9 |
3 files changed, 23 insertions, 1 deletions
diff --git a/db/downgrade_0063---0062.sql b/db/downgrade_0063---0062.sql new file mode 100644 index 000000000..0f875e3e4 --- /dev/null +++ b/db/downgrade_0063---0062.sql @@ -0,0 +1,8 @@ +BEGIN; + +ALTER TABLE moderation_original_data DROP extra; +ALTER TABLE moderation_original_data DROP latitude; +ALTER TABLE moderation_original_data DROP longitude; +ALTER TABLE moderation_original_data DROP category; + +COMMIT; diff --git a/db/schema.sql b/db/schema.sql index 30f5d3a30..a448e05fa 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -449,7 +449,12 @@ create table moderation_original_data ( anonymous bool not null, -- Metadata - created timestamp not null default current_timestamp + created timestamp not null default current_timestamp, + + extra text, + category text, + latitude double precision, + longitude double precision ); create table user_body_permissions ( diff --git a/db/schema_0063-add-extra-to-moderation.sql b/db/schema_0063-add-extra-to-moderation.sql new file mode 100644 index 000000000..9d003f895 --- /dev/null +++ b/db/schema_0063-add-extra-to-moderation.sql @@ -0,0 +1,9 @@ +BEGIN; + +ALTER TABLE moderation_original_data ADD extra text; +ALTER TABLE moderation_original_data ADD category text; +ALTER TABLE moderation_original_data ADD latitude double precision; +ALTER TABLE moderation_original_data ADD longitude double precision; + +COMMIT; + |