generated from dev/symfony-5-cli-template
Implementation a microservice architecture with JSON-RPC 2.0 communication between backend and frontend https://www.jsonrpc.org/specification
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
701 B
29 lines
701 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DoctrineMigrations;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
use Doctrine\Migrations\AbstractMigration;
|
|
|
|
final class Version20210129121632 extends AbstractMigration
|
|
{
|
|
public function up(Schema $schema) : void
|
|
{
|
|
$this->addSql('
|
|
CREATE TABLE history (
|
|
id INT AUTO_INCREMENT NOT NULL,
|
|
temp FLOAT NOT NULL,
|
|
date_at DATE NOT NULL, PRIMARY KEY(id)
|
|
)
|
|
DEFAULT CHARACTER SET utf8mb4
|
|
COLLATE `utf8mb4_unicode_ci`
|
|
ENGINE = InnoDB');
|
|
}
|
|
|
|
public function down(Schema $schema) : void
|
|
{
|
|
$this->addSql('DROP TABLE history');
|
|
}
|
|
}
|