我想我的應用「落地」遷移以南我寫了下面的命令蟒蛇manage.py遷移着陸錯誤
python manage.py migrate landing
,但它顯示了以下錯誤
Running migrations for landing:
- Migrating forwards to 0003_auto__chg_field_userinput_email2. landing:0001_initial
FATAL ERROR - The following SQL query failed: CREATE TABLE
landing_userinput
(id
integer AUTO_INCREMENT NOT NULL PRIMARY KEY,name
varchar(120) NOT NULL,city
varchar(120) NOT NULL,timestamp
datetim e NOT NULL)The error was: (1050, "Table 'landing_userinput' already exists") ! Error found during real run of migration! Aborting.
! Since you have a database that does not support running ! schema-altering statements in transactions, we have had ! to leave it in an interim state between migrations.
! You might be able to recover with: = DROP TABLE
landing_userinput
CASCAD E; []raise errorclass, errorvalue
django.db.utils.OperationalError: (1050, "Table 'landing_userinput' already exists")
請給我點建議以改善這個錯誤。
它說表格存在以及如何解決它。這樣做還是失敗? – Leigh