Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

200
Views
¿Es posible ejecutar makemigrations con un esquema eliminado?

Todo mi esquema SQL se eliminó debido a la inicialización de Windows10. Entonces, quiero ejecutar makemigrations con el código del proyecto django ya existente (con tantas líneas ...). Pero "python manage.py makemigrations" no funciona con el error 'La tabla no existe'... ¿Hay algún método para superar estas situaciones?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Sus scripts de migración existentes están corruptos. Así que necesitas hacer los siguientes pasos:

  1. Elimine la carpeta de migraciones dentro de su aplicación

  2. Luego ejecuta makemigrations

     python manage.py makemigrations
  3. Aplicar los cambios a la base de datos

     python manage.py migrate
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!