2011-12-31 4 views

답변

3

에서 동일한 달성 할 수있는 방법

`ALTER TABLE Example ADD status VARCHAR(60) default 1` 

, 그것은이다 MySql과 다릅니다. 당신이 당신의 모델 클래스에 새 필드를 추가하여 기존 모델을 업데이트하면 :

class Example(db.Model):  
    #other fields 
    status = db.StringProperty() 

example = Example() 
example.status = "Happy new year" 
example.put() 

당신은 그것을 얻을 수 있습니다.

관련 문제