Skip to content

Commit

Permalink
Merge tag 'v0.13.0-rc.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
evanp committed Aug 6, 2024
2 parents 01ad70e + c79f25d commit c514e28
Show file tree
Hide file tree
Showing 76 changed files with 8,525 additions and 109,126 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,6 @@ global-api/data/**

#Python virtual env
global-api/env

#Intellij
/.idea/**
5 changes: 3 additions & 2 deletions app/env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ SMTP_FROM_EMAIL="[email protected]"
RESET_TOKEN_SECRET="WwjFGhcP8VikgsmtcPv+ufPhTGS8t7e+/aN5k2qY4ms="
NEXT_PUBLIC_SUPPORT_EMAILS="[email protected],[email protected]"
VERIFICATION_TOKEN_SECRET="80c70dfdeedf2c01757b880d39c79214e915c786dd48d5473c9c0aecf81d67cf"
HUGGINGFACE_API_KEY=hf_MY_SECRET_KEY
OPENAI_API_KEY=sk-MY_SECRET_KEY
HUGGINGFACE_API_KEY="hf_MY_SECRET_KEY"
OPENAI_API_KEY="sk-MY_SECRET_KEY"
OPENAI_ASSISTANT_ID="asst_ASSISTANT_ID"
CHAT_PROVIDER=huggingface
OPEN_AI_MODEL="gpt-4o-mini"
ADMIN_EMAILS="[email protected]"
Expand Down
20 changes: 20 additions & 0 deletions app/migrations/20240724130917-emissions-factor-region-length.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.changeColumn(
"EmissionsFactor",
"region",
Sequelize.TEXT,
);
},

async down(queryInterface, Sequelize) {
await queryInterface.changeColumn(
"EmissionsFactor",
"region",
Sequelize.VARCHAR(10),
);
},
};
16 changes: 16 additions & 0 deletions app/migrations/20240724134914-input-methodology.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
queryInterface.addColumn(
"InventoryValue",
"input_methodology",
Sequelize.TEXT,
);
},

async down(queryInterface) {
queryInterface.removeColumn("InventoryValue", "input_methodology");
},
};
32 changes: 32 additions & 0 deletions app/migrations/20240805110810-activity-value-co2eq.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.addColumn(
"ActivityValue",
"co2eq",
Sequelize.BIGINT,
{ transaction },
);
await queryInterface.addColumn(
"ActivityValue",
"co2eq_years",
Sequelize.INTEGER,
{ transaction },
);
});
},

async down(queryInterface, Sequelize) {
await queryInterface.sequelize.transaction(async (transaction) => {
await queryInterface.removeColumn("ActivityValue", "co2eq", {
transaction,
});
await queryInterface.removeColumn("ActivityValue", "co2eq_years", {
transaction,
});
});
},
};
Loading

0 comments on commit c514e28

Please sign in to comment.