Crée une page pour lister et gérer les tutoriels ESY-WEB dans Artemis. Ajoute un formulaire pour créer de nouveaux tutoriels. Gère l'upload de fichiers mp4 pour les tutoriels.
34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?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 Version20250930100019 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 esy_web_tuto (id SERIAL NOT NULL, title TEXT NOT NULL, file_name VARCHAR(255) DEFAULT NULL, file_dimensions JSON DEFAULT NULL, file_size VARCHAR(255) DEFAULT NULL, file_mine_type VARCHAR(255) DEFAULT NULL, file_original_name VARCHAR(255) DEFAULT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
|
|
$this->addSql('COMMENT ON COLUMN esy_web_tuto.update_at IS \'(DC2Type:datetime_immutable)\'');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
// this down() migration is auto-generated, please modify it to your needs
|
|
$this->addSql('CREATE SCHEMA public');
|
|
$this->addSql('DROP TABLE esy_web_tuto');
|
|
}
|
|
}
|