aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
r Ran Guin <[email protected]> 2021-07-19 12:19:18 -0700 update migrations' href='/coinos-server.git/commit/db/migrations/20210625232223_add_invoice_id_to_payments.js?h=cashreq&id=e238eab45f1f5b6f3dbf40ddff59b9db804ffb4f'>e238eab4 ^
0fb703b8 ^

e238eab4 ^
7a8d6483 ^
0fb703b8 ^
7a8d6483 ^
e238eab4 ^

0fb703b8 ^
e238eab4 ^
7a8d6483 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
                                         
                                                        

                                                          
    
  
 
                                           

                                                        
                                   
    
  
export const up = async function (knex) {
  return knex.schema.table("payments", function(table) {
    table.integer("invoice_id");
    table.foreign("invoice_id").references("invoices.id");
  })
};

export const down = async function (knex) {
  return knex.schema.table("payments", function(table) {
    table.dropForeign("invoice_id");
    table.dropColumn("invoice_id");
  })
};