Skip to content

Commit

Permalink
fix: remove legacy columns from db table and seed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 10, 2022
1 parent 75925fa commit 4cda88e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 100 deletions.
11 changes: 1 addition & 10 deletions database/migrations/sqls/20220308233826-stakeholder-up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@ CREATE TABLE stakeholder (
last_name varchar,
email varchar NOT NULL,
phone varchar NOT NULL,
password varchar,
wallet varchar,
salt varchar,
website varchar,
logo_url varchar,
map varchar,
pwd_reset_required boolean,
offering_pay_to_plant boolean,
organization_id integer,
active_contract_id uuid,
tree_validation_contract_id uuid,
owner_id uuid,
created_at timestamptz NOT NULL DEFAULT now(),
updated_at timestamptz NOT NULL DEFAULT now()
);
);
86 changes: 7 additions & 79 deletions database/seeds/01_table_stakeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'hello@greenstand.com',
phone: '123-123-2122',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'greenstand',
logo_url: './logo_192x192.png',
map: '/greenstandMap',
organization_id: 1,
owner_id: null,
map: 'greenstandMap',
},
{
id: 'a8567323-88b1-4870-8c48-68d2da3ab356',
Expand All @@ -34,18 +25,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'hello@greenstance.com',
phone: '123-123-1234',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'greenstance.com',
logo_url: './logo_192x192.png',
map: '/greenstance',
organization_id: null,
owner_id: null,
map: 'greenstance',
},
{
id: 'c92189d2-2d55-44bc-a0b4-0dad25dc9f35',
Expand All @@ -55,18 +37,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'greenspace@green.com',
phone: '123-123-1324',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'greenspace.com',
logo_url: './logo_192x192.png',
map: '/greenspace',
organization_id: null,
owner_id: null,
map: 'greenspace',
},
{
id: '344a6130-9094-4a05-8fd6-faf176593fbc',
Expand All @@ -76,18 +49,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'hi@greenworld.com',
phone: '123-123-1234',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'greenworld.com',
logo_url: './logo_192x192.png',
map: '/greenworld',
organization_id: null,
owner_id: null,
map: 'greenworld',
},
{
id: '1a05ec87-3c38-4395-b9f3-aa15becedc31',
Expand All @@ -97,18 +61,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'child@gmail.com',
phone: '123-123-1234',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'childone.com',
logo_url: './logo_192x192.png',
map: '/childOne',
organization_id: null,
owner_id: null,
map: 'childOne',
},
{
id: '1d2fb06e-e8f7-40de-8e13-ed3eba1abb3a',
Expand All @@ -118,18 +73,9 @@ exports.seed = function (knex) {
last_name: '',
email: 'childtwo@gmail.com',
phone: '123-234-1234',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'childtwo.com',
logo_url: './logo_192x192.png',
map: '/childTwo',
organization_id: null,
owner_id: null,
map: 'childTwo',
},
{
id: '35a23de8-f1ab-4409-be79-3c6a158d5bde',
Expand All @@ -139,18 +85,9 @@ exports.seed = function (knex) {
last_name: 'One',
email: 'growerOne@gmail.com',
phone: '123-123-1234',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: '',
logo_url: './person_192x192.png',
map: '/childtwo',
organization_id: null,
owner_id: null,
map: 'childtwo',
},
{
id: '90eef52b-ad55-4953-ace9-6a324ae6cec2',
Expand All @@ -160,18 +97,9 @@ exports.seed = function (knex) {
last_name: 'Two',
email: 'growerTwo@gmail.com',
phone: '123-123-1235',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: '',
logo_url: './person_192x192.png',
map: '',
organization_id: null,
owner_id: null,
},
]);
});
Expand Down
11 changes: 1 addition & 10 deletions database/seeds/10_fairtree_story.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,9 @@ exports.seed = async function (knex) {
last_name: '',
email: 'hello@greenstand.com',
phone: '123-123-2122',
pwd_reset_required: null,
password: null,
wallet: null,
salt: null,
offering_pay_to_plant: null,
active_contract_id: null,
tree_validation_contract_id: null,
website: 'greenstand',
logo_url: './logo_192x192.png',
map: '/greenstandMap',
organization_id: 1,
owner_id: null,
map: 'greenstandMap',
}

organization.id = parentId;
Expand Down
1 change: 0 additions & 1 deletion docs/api/spec/example-messaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ paths:
parent_message_id: 0
recipient_handle: '+13132324232'
author_handle: string
subject: string
body: string
org-wide-message-with-survey:
value:
Expand Down

0 comments on commit 4cda88e

Please sign in to comment.