我不能使用南,我沒有pgAdmin,但我需要在模型的末尾添加新字段到模型。我需要的是:django添加模型字段manualy到postgres數據庫
new_field = models.CharField(max_length=200, blank=True, null=True)
我有ssh訪問,並有PSQL用戶定義的,所以我需要的語法到該字段添加到模型數據庫表。 ALTER TABLE store_products ADD COLUMN description text;
是否能完成這項工作?如何設置max_length 200,空白和空值爲true? postgresql 9.1,django 1.6。
爲什麼不能用南方? http://south.readthedocs.org/en/latest/ – crazyzubr