Comments (3)
Has you run php bin/console doctrine:migrations:migrate
before? and was it successful?
This looks like it has something to do with a wrong (or a not up-to-date) database.
from part-db-server.
@jbtronics
We also have the issue, currently we are using Part-DB Version 0.5.9
I duplicated the database and tried to upgrade, but i get the following error if i run php bin/console doctrine:migrations:migrate
WARNING! You are about to execute a migration in database "partdb-live-up" that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
> yes
[notice] Migrating up to DoctrineMigrations\Version20200502161750
[warning] Old Part-DB Database detected! Continue with upgrade...
[warning] Migration DoctrineMigrations\Version1 was executed but did not result in any SQL statements.
[warning] [!!!] Permissions were updated! Please check if they fit your expectations!
[error] Migration DoctrineMigrations\Version20190902140506 failed during Execution. Error: "An exception occurred while executing 'ALTER TABLE parts DROP FOREIGN KEY parts_id_footprint_fk':
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists"
15:00:59 CRITICAL [console] Error thrown while running command "doctrine:migrations:migrate". Message: "An exception occurred while executing 'ALTER TABLE parts DROP FOREIGN KEY parts_id_footprint_fk':\n\nSQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists" ["exception" => Doctrine\DBAL\Exception\DriverException^ { …},"command" => "doctrine:migrations:migrate","message" => """ An exception occurred while executing 'ALTER TABLE parts DROP FOREIGN KEY parts_id_footprint_fk':\n \n SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists """]
In AbstractMySQLDriver.php line 128:
An exception occurred while executing 'ALTER TABLE parts DROP FOREIGN KEY parts_id_footprint_fk':
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists
In Exception.php line 18:
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists
In PDOConnection.php line 137:
SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'parts_id_footprint_fk'; check that column/key exists
doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]
I tried to remove the DROP FOREIGN KEY
-Part, after i removed 5 DROP FOREIGN KEY
i stopped because there are more and more errors.
If i skip php bin/console doctrine:migrations:migrate
and run php bin/console app:convert-bbcode
directly i get the same issue as @OrionAC.
from part-db-server.
You have to do the database migrations before attempting to do BBCode conversion.
from part-db-server.
Related Issues (20)
- Error in Installation Guide: Incorrect Database URL Configuration HOT 1
- Support for trusted header / forward auth HOT 1
- Add SI unit prefixes in parts parameters
- Sync over multiple instances HOT 2
- Duplicate storage location with sub elements
- Project-Build-Error when private lot is a subpart HOT 1
- Cost calculation after building project HOT 1
- About kicad‘s boom import Part-DB HOT 1
- PartKeepr to Part-DB migration in docker HOT 2
- Language randomly switches to french HOT 1
- category Parameters won't apply with new Part creation HOT 1
- LCSC Search URL outdated HOT 1
- Unclear documentation or missing feature? Field name for import data with KiCad footprint and symbol
- Better import feature
- Runtime exception: Multiple parts found with ID N/A HOT 1
- Can't accessing detail pages HOT 2
- Export and print functions for all tables
- Unable to backup on raspberry pi docker. Permission denied. HOT 4
- The “Show/Hide sidebar” button is invisible in dark mode HOT 1
- add scanner and search buttons to the navbar in the mobile view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from part-db-server.