Verified Commit 5def8741 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Fixed migration crashing

parent 178c8abb
......@@ -35,6 +35,7 @@ final class Version20200815164313 extends AbstractMigration {
public function up(Schema $schema): void {
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("SET SESSION sql_mode = 'TRADITIONAL'");
$this->addSql('ALTER TABLE block DROP FOREIGN KEY FK_831B9722158E0B66');
$this->addSql('ALTER TABLE block DROP FOREIGN KEY FK_831B9722A76ED395');
$this->addSql('ALTER TABLE block ADD CONSTRAINT FK_831B9722158E0B66 FOREIGN KEY (target_id) REFERENCES user (id) ON DELETE CASCADE');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment