| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Version20201116203128 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription() : string |
||
| 16 | { |
||
| 17 | return ''; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function up(Schema $schema) : void |
||
| 21 | { |
||
| 22 | // this up() migration is auto-generated, please modify it to your needs |
||
| 23 | $this->addSql('CREATE TABLE image (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, size_in_bytes INT NOT NULL, mime_type VARCHAR(255) NOT NULL, original_name VARCHAR(255) DEFAULT NULL, dimensions VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function down(Schema $schema) : void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |