首页 > 其他 > 详细

django数据迁移命令

时间:2019-04-05 22:58:48      阅读:160      评论:0      收藏:0      [点我收藏+]
D:\pythonspacen\djano\guest>python manage.py makemigrations sign
Migrations for ‘sign‘:
  sign\migrations\0001_initial.py
    - Create model Event
    - Create model Guest
    - Alter unique_together for guest (1 constraint(s))

D:\pythonspacen\djano\guest>python manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions, sign
Running migrations:
  Applying sign.0001_initial... OK

D:\pythonspacen\djano\guest>

技术分享图片

django数据迁移命令

原文:https://blog.51cto.com/357712148/2374611

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!