-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
572 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20210522230437 extends AbstractMigration | ||
{ | ||
public function up(Schema $schema): void | ||
{ | ||
$this->abortIf( | ||
$this->connection->getDatabasePlatform()->getName() !== 'mysql', | ||
'Migration can only be executed safely on \'mysql\'.' | ||
); | ||
|
||
$this->addSql('ALTER TABLE provision | ||
CHANGE valuta date DATE NOT NULL, | ||
CHANGE importo amount NUMERIC(8, 2) NOT NULL, | ||
CHANGE descrizione description VARCHAR(255) NOT NULL'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->abortIf( | ||
$this->connection->getDatabasePlatform()->getName() !== 'mysql', | ||
'Migration can only be executed safely on \'mysql\'.' | ||
); | ||
|
||
$this->addSql('ALTER TABLE provision | ||
CHANGE date valuta DATE NOT NULL, | ||
CHANGE amount importo NUMERIC(8, 2) NOT NULL, | ||
CHANGE description descrizione VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20210523181349 extends AbstractMigration | ||
{ | ||
public function up(Schema $schema): void | ||
{ | ||
$this->abortIf( | ||
$this->connection->getDatabasePlatform()->getName() !== 'mysql', | ||
'Migration can only be executed safely on \'mysql\'.' | ||
); | ||
|
||
$this->addSql('ALTER TABLE setting | ||
CHANGE payday paypay SMALLINT UNSIGNED DEFAULT 1 NOT NULL, | ||
CHANGE monthsretrospective months SMALLINT UNSIGNED DEFAULT 12 NOT NULL, | ||
CHANGE stored provisioning TINYINT(1) DEFAULT 0 NOT NULL'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->abortIf( | ||
$this->connection->getDatabasePlatform()->getName() !== 'mysql', | ||
'Migration can only be executed safely on \'mysql\'.' | ||
); | ||
|
||
$this->addSql('ALTER TABLE setting | ||
CHANGE paypay payDay SMALLINT UNSIGNED DEFAULT 1 NOT NULL, | ||
CHANGE months monthsRetrospective SMALLINT UNSIGNED DEFAULT 12 NOT NULL, | ||
CHANGE provisioning stored TINYINT(1) DEFAULT 0 NOT NULL'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.