I also am struggling with updating.
When I run php bin/console doctrine:migrations:migrate I get this:
Migration 20201120122846 failed during Execution. Error An exception occurred while executing â
CREATE TABLE mau4m_campaign_summary (
id INT UNSIGNED AUTO_INCREMENT NOT NULL,
campaign_id INT UNSIGNED DEFAULT NULL,
event_id INT UNSIGNED NOT NULL,
date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:datetime_immutable)â,
scheduled_count INT NOT NULL,
triggered_count INT NOT NULL,
non_action_path_taken_count INT NOT NULL,
failed_count INT NOT NULL,
log_counts_processed INT,
INDEX IDX_CEFB88B5F639F774 (campaign_id),
INDEX IDX_CEFB88B571F7E88B (event_id),
UNIQUE INDEX campaign_event_date_triggered (campaign_id, event_id, date_triggered),
PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
ENGINE = InnoDB ROW_FORMAT = DYNAMIC;
':
Table âmau4m_campaign_summaryâ already exists
In AbstractMySQLDriver.php line 57:
An exception occurred while executing â
CREATE TABLE mau4m_campaign_summary (
id INT UNSIGNED AUTO_INCREMENT NOT NULL,
campaign_id INT UNSIGNED DEFAULT NULL,
event_id INT UNSIGNED NOT NULL,
date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:date
time_immutable)â,
scheduled_count INT NOT NULL,
triggered_count INT NOT NULL,
non_action_path_taken_count INT NOT NULL,
failed_count INT NOT NULL,
log_counts_processed INT,
INDEX IDX_CEFB88B5F639F774 (campaign_id),
INDEX IDX_CEFB88B571F7E88B (event_id),
UNIQUE INDEX campaign_event_date_triggered (campaign_id, ev
ent_id, date_triggered),
PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
EN
GINE = InnoDB ROW_FORMAT = DYNAMIC;
':
Table âmau4m_campaign_summaryâ already exists
In StatementError.php line 19:
Table âmau4m_campaign_summaryâ already exists
doctrine:migrations:migrate [âwrite-sql [WRITE-SQL]] [âdry-run] [âquery-time] [âallow-no-migration] [âall-or-nothing [ALL-OR-NOTHING]] [âconfiguration [CONFIGURATION]] [âdb-configuration [DB-CONFIGURATION]] [âdb DB] [âem EM] [âshard SHARD] [-h|âhelp] [-q|âquiet] [-v|vv|vvv|âverbose] [-V|âversion] [âansi] [âno-ansi] [-n|âno-interaction] [-e|âenv ENV] [âno-debug] [â] []
Any idea what I can do to fix this?
Running s/update/schema gives me: An error occurred while updating the database. Check log for more details.
This is in the log:
[2022-03-03 14:09:06] mautic.NOTICE: Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing â CREATE TABLE mau4m_campaign_summary ( id INT UNSIGNED AUTO_INCREMENT NOT NULL, campaign_id INT UNSIGNED DEFAULT NULL, event_id INT UNSIGNED NOT NULL, date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:datetime_immutable)â, scheduled_count INT NOT NULL, triggered_count INT NOT NULL, non_action_path_taken_count INT NOT NULL, failed_count INT NOT NULL, log_counts_processed INT, INDEX IDX_CEFB88B5F639F774 (campaign_id), INDEX IDX_CEFB88B571F7E88B (event_id), UNIQUE INDEX campaign_event_date_triggered (campaign_id, event_id, date_triggered), PRIMARY KEY(id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
ENGINE = InnoDB ROW_FORMAT = DYNAMIC; ': Table âmau4m_campaign_summaryâ already exists (uncaught exception) at /home/golfasia/engage.golfasia.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 57 while running console command doctrine:migrations:migrate
[2022-03-03 14:09:06] mautic.WARNING: Command doctrine:migrations:migrate
exited with status code 1
[2022-03-03 14:09:06] mautic.ERROR: [UPGRADE ERROR] Exit code 1; Mautic Migrations \ Migrating up to 20220111202917 from 20201105120328 \ ++ migrating 20201120122846 \ â CREATE TABLE mau4m_campaign_summary ( id INT UNSIGNED AUTO_INCREMENT NOT NULL, campaign_id INT UNSIGNED DEFAULT NULL, event_id INT UNSIGNED NOT NULL, date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:datetime_immutable)â, scheduled_count INT NOT NULL, triggered_count INT NOT NULL, non_action_path_taken_count INT NOT NULL, failed_count INT NOT NULL, log_counts_processed INT, INDEX IDX_CEFB88B5F639F774 (campaign_id), INDEX IDX_CEFB88B571F7E88B (event_id), UNIQUE INDEX campaign_event_date_triggered (campaign_id, event_id, date_triggered), PRIMARY KEY(id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
ENGINE = InnoDB ROW_FORMAT = DYNAMIC; Migration 20201120122846 failed during Execution. Error An exception occurred while executing â CREATE TABLE mau4m_campaign_summary ( id INT UNSIGNED AUTO_INCREMENT NOT NULL, campaign_id INT UNSIGNED DEFAULT NULL, event_id INT UNSIGNED NOT NULL, date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:datetime_immutable)â, scheduled_count INT NOT NULL, triggered_count INT NOT NULL, non_action_path_taken_count INT NOT NULL, failed_count INT NOT NULL, log_counts_processed INT, INDEX IDX_CEFB88B5F639F774 (campaign_id), INDEX IDX_CEFB88B571F7E88B (event_id), UNIQUE INDEX campaign_event_date_triggered (campaign_id, event_id, date_triggered), PRIMARY KEY(id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
ENGINE = InnoDB ROW_FORMAT = DYNAMIC; ': \ Table âmau4m_campaign_summaryâ already exists \ In AbstractMySQLDriver.php line 57: \ An exception occurred while executing â CREATE TABLE mau4m_campaign_summary ( id INT UNSIGNED AUTO_INCREMENT NOT NULL, campaign_id INT UNSIGNED DEFAULT NULL, event_id INT UNSIGNED NOT NULL, date_triggered DATETIME DEFAULT NULL COMMENT â(DC2Type:date time_immutable)â, scheduled_count INT NOT NULL, triggered_count INT NOT NULL, non_action_path_taken_count INT NOT NULL, failed_count INT NOT NULL, log_counts_processed INT, INDEX IDX_CEFB88B5F639F774 (campaign_id), INDEX IDX_CEFB88B571F7E88B (event_id), UNIQUE INDEX campaign_event_date_triggered (campaign_id, ev ent_id, date_triggered), PRIMARY KEY(id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
EN GINE = InnoDB ROW_FORMAT = DYNAMIC; ': \ Table âmau4m_campaign_summaryâ already exists \ In StatementError.php line 19: \ Table âmau4m_campaign_summaryâ already exists \ doctrine:migrations:migrate [âwrite-sql [WRITE-SQL]] [âdry-run] [âquery-time] [âallow-no-migration] [âall-or-nothing [ALL-OR-NOTHING]] [âconfiguration [CONFIGURATION]] [âdb-configuration [DB-CONFIGURATION]] [âdb DB] [âem EM] [âshard SHARD] [-h|âhelp] [-q|âquiet] [-v|vv|vvv|âverbose] [-V|âversion] [âansi] [âno-ansi] [-n|âno-interaction] [-e|âenv ENV] [âno-debug] [â] \
running php bin/console doctrine:migrations:status gives me:
== Configuration
>> Name: Mautic Migrations
>> Database Driver: mysqli
>> Database Host: localhost
>> Database Name: databasename-here
>> Configuration Source: manually configured
>> Version Table Name: mau4m_migrations
>> Version Column Name: version
>> Migrations Namespace: Mautic\Migrations
>> Migrations Directory: /path/app/migrations
>> Previous Version: 2020-11-02 13:35:46 (20201102133546)
>> Current Version: 2020-11-05 12:03:28 (20201105120328)
>> Next Version: 2020-11-20 12:28:46 (20201120122846)
>> Latest Version: 2022-01-11 20:29:17 (20220111202917)
>> Executed Migrations: 31
>> Executed Unavailable Migrations: 0
>> Available Migrations: 47
>> New Migrations: 16
Any help is appreciated