You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Migrations/Version20251021074051.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,16 @@ final class Version20251021074051 extends AbstractMigration
20
20
{
21
21
publicfunctiongetDescription(): string
22
22
{
23
-
return'Add yearand month columns to sylius_invoicing_plugin_sequence table';
23
+
return'Add year, month and type columns to sylius_invoicing_plugin_sequence table';
24
24
}
25
25
26
26
publicfunctionup(Schema$schema): void
27
27
{
28
-
$this->addSql('ALTER TABLE sylius_invoicing_plugin_sequence ADD year INT DEFAULT NULL, ADD month INT NOT NULL');
28
+
$this->addSql('ALTER TABLE sylius_invoicing_plugin_sequence ADD year INT DEFAULT NULL, ADD month INT DEFAULT NULL, ADD type VARCHAR(255) DEFAULT NULL');
29
29
}
30
30
31
31
publicfunctiondown(Schema$schema): void
32
32
{
33
-
$this->addSql('ALTER TABLE sylius_invoicing_plugin_sequence DROP year, DROP month');
33
+
$this->addSql('ALTER TABLE sylius_invoicing_plugin_sequence DROP year, DROP month, DROP type');
0 commit comments