Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (entradasegura-backend) [root@ip-172-31-26-138 backend]# alembic upgrade head
- INFO [alembic.runtime.migration] Context impl MySQLImpl.
- INFO [alembic.runtime.migration] Will assume non-transactional DDL.
- INFO [alembic.runtime.migration] Running upgrade -> f11fd1cfd388, initial migration
- Traceback (most recent call last):
- File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
- self.dialect.do_execute(
- File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
- cursor.execute(statement, parameters)
- File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
- res = self._query(query)
- File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
- db.query(q)
- File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/connections.py", line 259, in query
- _mysql.connection.query(self, query)
- MySQLdb._exceptions.OperationalError: (1005, 'Can\'t create table `entradasegura`.`person` (errno: 150 "Foreign key constraint is incorrectly formed")')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement