Open msirovy opened 7 years ago
@msirovy The "current amount" is the current total amount of funds that have been sent to the project's receiving address (bitcoin address). This information exists in the bitcoin blockchain, which we check by using blockchain.info's API. See services/bitcoin.js.
As for database migrations:
queueSchemaChange
which allows you to queue-up a change to the database. Usage looks like this:
YourModel.queueSchemaChange(function(cb) {
db.schema.table(this.tableName, function(table) {
table.string('new_string_column');
// Call cb() when done with your changes.
});
});
See knex.js for more information about how to work with its schema API.
Please check my sollution and give me feedback
Questions: Is there any command to do db migrate or sync db scheme from model to working DB?