Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illuminate\Database\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'file_software' already exists (SQ... #1089

Open
sentry-io bot opened this issue Jun 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Jun 16, 2021

Sentry Issue: FORTRABBIT-N

PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'file_software' already exists
  File "/database/migrations/2021_06_15_034642_add_files_to_software_table.php", line 23, in AddFilesToSoftwareTable::up
    });
  File "/artisan", line 37
    new Symfony\Component\Console\Output\ConsoleOutput
...
(27 additional frame(s) were not displayed)

Illuminate\Database\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'file_software' already exists (SQL: create table `file_software` (`file_id` bigint unsigned not null, `software_id` bigint unsigned not null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
  File "/database/migrations/2021_06_15_034642_add_files_to_software_table.php", line 23, in AddFilesToSoftwareTable::up
    });
  File "/artisan", line 37
    new Symfony\Component\Console\Output\ConsoleOutput
...
(25 additional frame(s) were not displayed)
@djaiss
Copy link
Member

djaiss commented Jun 16, 2021

@asbiin this is because we need to update the SQL file that fills the demo account with the new table structure every time we change it.

How can I update it myself?

@djaiss djaiss added the bug Something isn't working label Jun 16, 2021
@asbiin
Copy link
Contributor

asbiin commented Jun 16, 2021

@djaiss see https://github.com/officelifehq/demosql/blob/main/generate.sh the sql file is on the same repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants