blob: d8f70a6fe2667c39755390eff382e36a11ddec31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
exports.up = async function (knex) {
return knex.schema.table("payments", function(table) {
table.integer("invoice_id");
table.foreign("invoice_id").references("invoices.id");
})
}
exports.down = async function (knex) {
return knex.schema.table("payments", function(table) {
table.dropForeign("invoice_id");
table.dropColumn("invoice_id");
})
}
|