Skip to content

Commit

Permalink
Merge pull request #4251 from thematters/develop
Browse files Browse the repository at this point in the history
Release: v5.6.1
  • Loading branch information
pauljusti authored Dec 12, 2024
2 parents 04c902d + feefe87 commit 26c3485
Show file tree
Hide file tree
Showing 48 changed files with 2,379 additions and 994 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ APOLLO_KEY=
APOLLO_GRAPH_REF=
MATTERS_OPENSEA_API_BASE=https://rinkeby-api.opensea.io/api/v1
MATTERS_LOGBOOK_CLAIMER_PRIVATE_KEY=
MATTERS_CURATION_VAULT_SIGNER_PRIVATE_KEY=
MATTERS_ALCHEMY_API_KEY=
MATTERS_OPENSEA_API_KEY=
MATTERS_EXCHANGE_RATES_DATA_API_KEY=QLqGNNhnz8MHpwOh9AqTJv069po2aR09
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
MATTERS_STRIPE_SECRET: sk_test_foobar
MATTERS_SENDGRID_API_KEY: SG.0-_abcabcabc.
MATTERS_OPENSEA_API_BASE: 'https://rinkeby-api.opensea.io/api/v1'
MATTERS_CURATION_VAULT_SIGNER_PRIVATE_KEY: '0x8441d82233625acbb5738a56d9ad0a841515e882d536a06b5962c628472af073'

- name: Build
run: npm run build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
MATTERS_STRIPE_SECRET: sk_test_foobar
MATTERS_SENDGRID_API_KEY: SG.0-_abcabcabc.
MATTERS_OPENSEA_API_BASE: 'https://rinkeby-api.opensea.io/api/v1'
MATTERS_CURATION_VAULT_SIGNER_PRIVATE_KEY: '0x8441d82233625acbb5738a56d9ad0a841515e882d536a06b5962c628472af073'

- name: Build
run: npm run build
34 changes: 34 additions & 0 deletions db/migrations/20241129125017_alter_transaction_purpose.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { alterEnumString } = require('../utils')

const table = 'transaction'

exports.up = async (knex) => {
await knex.raw(
alterEnumString(table, 'purpose', [
'donation',
'add-credit',
'refund',
'payout',
'subscription',
'subscription-split',
'dispute',
'payout-reversal',
'curation-vault-withdrawal',
])
)
}

exports.down = async (knex) => {
await knex.raw(
alterEnumString(table, 'purpose', [
'donation',
'add-credit',
'refund',
'payout',
'subscription',
'subscription-split',
'dispute',
'payout-reversal',
])
)
}
19 changes: 19 additions & 0 deletions db/migrations/20241204160111_alter_blockchain_curation_event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const table = 'blockchain_curation_event'

exports.up = async (knex) => {
await knex.schema.alterTable(table, (t) => {
t.bigInteger('creator_id').unsigned()
t.string('creator_address').nullable().alter()

t.foreign('creator_id').references('id').inTable('user')

t.index('creator_id')
})
}

exports.down = async (knex) => {
await knex.schema.alterTable(table, (t) => {
t.dropColumn('creator_id')
t.string('creator_address').notNullable().alter()
})
}
18 changes: 18 additions & 0 deletions db/migrations/20241210211824_add_campaign_article_announcement.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const table = 'campaign_article'

exports.up = async (knex) => {
await knex.schema.table(table, function (t) {
t.boolean('announcement').defaultTo(false)
})

// migrate records that `campaign_stage_id` is null
await knex(table)
.whereNull('campaign_stage_id')
.update({ announcement: true })
}

exports.down = async (knex) => {
await knex.schema.table(table, function (t) {
t.dropColumn('announcement')
})
}
Loading

0 comments on commit 26c3485

Please sign in to comment.