码迷,mamicode.com
首页 > 其他好文 > 详细

django数据迁移命令

时间:2019-04-05 22:40:27      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:man   model   str   dmi   make   creat   lte   shadow   数据   

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数据迁移命令

标签:man   model   str   dmi   make   creat   lte   shadow   数据   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!