Revert "Add column default attribute"

This commit is contained in:
astaxie
2014-10-24 14:58:17 +08:00
parent c6cb1f92e8
commit 767083bd56
2 changed files with 1 additions and 53 deletions

View File

@@ -116,7 +116,6 @@ type fieldInfo struct {
null bool
index bool
unique bool
colDefault bool
initial StrTo
size int
auto_now bool
@@ -281,11 +280,6 @@ checkType:
fi.pk = attrs["pk"]
fi.unique = attrs["unique"]
// Mark object property if there is attribute "default" in the orm configuration
if _, ok := tags["default"]; ok {
fi.colDefault = true
}
switch fieldType {
case RelManyToMany, RelReverseMany, RelReverseOne:
fi.null = false