File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1010 <field name =" localeCode" column =" locale_code" />
1111 <field name =" total" column =" total" type =" integer" />
1212 <field name =" paymentState" column =" payment_state" />
13- <field name =" path" column =" path" />
13+ <field name =" path" column =" path" unique = " true " />
1414
1515 <one-to-one field =" billingData" target-entity =" Sylius\InvoicingPlugin\Entity\BillingDataInterface" >
1616 <cascade >
Original file line number Diff line number Diff line change 1313
1414namespace Sylius \InvoicingPlugin \Generator ;
1515
16- use Sylius \InvoicingPlugin \Entity \InvoiceInterface ;
17-
1816interface InvoiceFileNameGeneratorInterface
1917{
2018 public function generateForPdf (string $ invoiceNumber ): string ;
Original file line number Diff line number Diff line change @@ -20,16 +20,18 @@ final class Version20251023082457 extends AbstractMigration
2020{
2121 public function getDescription (): string
2222 {
23- return 'Add path column to sylius_invoicing_plugin_invoice table to store invoice file paths ' ;
23+ return 'Add path field to sylius_invoicing_plugin_invoice table ' ;
2424 }
2525
2626 public function up (Schema $ schema ): void
2727 {
2828 $ this ->addSql ('ALTER TABLE sylius_invoicing_plugin_invoice ADD path VARCHAR(255) NOT NULL ' );
29+ $ this ->addSql ('CREATE UNIQUE INDEX UNIQ_3AA279BFB548B0F ON sylius_invoicing_plugin_invoice (path) ' );
2930 }
3031
3132 public function down (Schema $ schema ): void
3233 {
34+ $ this ->addSql ('DROP INDEX UNIQ_3AA279BFB548B0F ON sylius_invoicing_plugin_invoice ' );
3335 $ this ->addSql ('ALTER TABLE sylius_invoicing_plugin_invoice DROP path ' );
3436 }
3537}
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ TEST_APP_BUNDLES_PATH="tests/TestApplication/bundles.php"
88WKHTMLTOPDF_PATH = /usr/local/bin/wkhtmltopdf
99# ##< knplabs/knp-snappy-bundle ###
1010
11- TEST_SYLIUS_INVOICING_PDF_GENERATION_DISABLED = false
1211TEST_SYLIUS_INVOICING_PDF_GENERATION_DISABLED = false
1312
1413SYLIUS_INVOICING_SEQUENCE_SCOPE = ' monthly'
You can’t perform that action at this time.
0 commit comments