Skip to content

Commit

Permalink
migration + database
Browse files Browse the repository at this point in the history
  • Loading branch information
leo_riger committed Jun 2, 2024
1 parent dc9eec1 commit c67d2c2
Show file tree
Hide file tree
Showing 23 changed files with 32 additions and 0 deletions.
Binary file modified docker/db/data/#ib_16384_0.dblwr
Binary file not shown.
Binary file modified docker/db/data/#innodb_redo/#ib_redo9
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_1.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_10.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_2.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_3.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_4.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_5.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_6.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_7.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_8.ibt
Binary file not shown.
Binary file modified docker/db/data/#innodb_temp/temp_9.ibt
Binary file not shown.
Binary file modified docker/db/data/app/doctrine_migration_versions.ibd
Binary file not shown.
Binary file added docker/db/data/app/hero.ibd
Binary file not shown.
Binary file modified docker/db/data/binlog.000004
Binary file not shown.
Binary file added docker/db/data/binlog.000005
Binary file not shown.
1 change: 1 addition & 0 deletions docker/db/data/binlog.index
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
./binlog.000002
./binlog.000003
./binlog.000004
./binlog.000005
Binary file modified docker/db/data/ibdata1
Binary file not shown.
Binary file modified docker/db/data/ibtmp1
Binary file not shown.
Binary file modified docker/db/data/mysql.ibd
Binary file not shown.
Binary file modified docker/db/data/undo_001
Binary file not shown.
Binary file modified docker/db/data/undo_002
Binary file not shown.
31 changes: 31 additions & 0 deletions migrations/Version20240602135945.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240602135945 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE hero (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE hero');
}
}

0 comments on commit c67d2c2

Please sign in to comment.