20240930103716_add_payment_fields_to_test_table.php 471 B

12345678910111213
  1. <?php
  2. use Phinx\Migration\AbstractMigration;
  3. class AddPaymentFieldsToTestTable extends AbstractMigration {
  4. public function change() {
  5. $this->table("test")
  6. ->addColumn("stripe_invoice_id", "string", ["null" => true, "after" => "tester_id"])
  7. ->addColumn("payment_required", "boolean", ["signed" => false, "default" => 0, "after" => "status_tester_invoice"])
  8. ->addColumn("dts_paid", "datetime", ["null" => true, "after" => "dts_verified"])
  9. ->update();
  10. }
  11. }