vendor/bluue/recurring-invoices-bundle/migrations/Version20240811171012.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace RecurringInvoicesBundleMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. final class Version20240811171012 extends AbstractMigration
  7. {
  8.     public function up(Schema $schema): void
  9.     {
  10.         $this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice ADD total_discount NUMERIC(20, 6) DEFAULT NULL, ADD total_amount_no_discount NUMERIC(20, 6) DEFAULT NULL, ADD edit_prices_with_tax TINYINT(1) DEFAULT 0 NOT NULL');
  11.         $this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line ADD unit_price_with_tax NUMERIC(20, 6) DEFAULT NULL, ADD total_discount NUMERIC(20, 6) DEFAULT NULL, ADD total_amount_no_discount NUMERIC(20, 6) DEFAULT NULL');
  12.     }
  13.     public function down(Schema $schema): void
  14.     {
  15.         $this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice DROP total_discount, DROP total_amount_no_discount, DROP edit_prices_with_tax');
  16.         $this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line DROP unit_price_with_tax, DROP total_discount, DROP total_amount_no_discount');
  17.     }
  18. }