Advertisement
possebon

Untitled

Aug 24th, 2021
1,688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.20 KB | None | 0 0
  1. (entradasegura-backend) [root@ip-172-31-26-138 backend]# alembic upgrade head
  2. INFO  [alembic.runtime.migration] Context impl MySQLImpl.
  3. INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  4. INFO  [alembic.runtime.migration] Running upgrade  -> f11fd1cfd388, initial migration
  5. Traceback (most recent call last):
  6.   File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
  7.     self.dialect.do_execute(
  8.   File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
  9.     cursor.execute(statement, parameters)
  10.   File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
  11.     res = self._query(query)
  12.   File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
  13.     db.query(q)
  14.   File "/opt/venv/entradasegura-backend/lib/python3.9/site-packages/MySQLdb/connections.py", line 259, in query
  15.     _mysql.connection.query(self, query)
  16. 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