diff --git a/app/DoctrineMigrations/Version20221105112542.php b/app/DoctrineMigrations/Version20221105112542.php new file mode 100644 index 000000000..d568c3f52 --- /dev/null +++ b/app/DoctrineMigrations/Version20221105112542.php @@ -0,0 +1,35 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE job ADD url VARCHAR(255) DEFAULT NULL'); + } + + public function down(Schema $schema) : void + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE job DROP url'); + } +} diff --git a/app/Resources/views/admin/job/_form.html.twig b/app/Resources/views/admin/job/_form.html.twig index c899e2c56..e7fa334c6 100644 --- a/app/Resources/views/admin/job/_form.html.twig +++ b/app/Resources/views/admin/job/_form.html.twig @@ -34,6 +34,11 @@ {{ form_errors(form.description) }} {{ form_widget(form.description) }} +
+ {{ form_label(form.url) }} + {{ form_errors(form.url) }} + {{ form_widget(form.url) }} +
{{ form_errors(form.enabled) }}