Terms and conditions screen (#118)

* Terms and Conditions screen added

* missing fields

* SQL migration added

* terms.text: markdown to html on server side

* markdown field type added

* other minor changes
This commit is contained in:
Fabio Cigliano 2018-06-06 07:35:30 +12:00 committed by Josh Harvey
parent d1712ce1ce
commit a30b835786
7 changed files with 1106 additions and 527 deletions

View file

@ -0,0 +1,14 @@
var db = require('./db')
exports.up = function (next) {
const sql = [
'alter table cash_in_txs add column terms_accepted boolean not null default false',
'alter table cash_out_txs add column terms_accepted boolean not null default false'
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}