|
|
@ -419,7 +419,7 @@ func EnsureUpToDate(x *xorm.Engine) error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if currentDB < 0 { |
|
|
|
if currentDB < 0 { |
|
|
|
return fmt.Errorf("Database has not been initialised") |
|
|
|
return fmt.Errorf("Database has not been initialized") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if minDBVersion > currentDB { |
|
|
|
if minDBVersion > currentDB { |
|
|
@ -953,7 +953,7 @@ func dropTableColumns(sess *xorm.Session, tableName string, columnNames ...strin |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// modifyColumn will modify column's type or other propertity. SQLITE is not supported
|
|
|
|
// modifyColumn will modify column's type or other property. SQLITE is not supported
|
|
|
|
func modifyColumn(x *xorm.Engine, tableName string, col *schemas.Column) error { |
|
|
|
func modifyColumn(x *xorm.Engine, tableName string, col *schemas.Column) error { |
|
|
|
var indexes map[string]*schemas.Index |
|
|
|
var indexes map[string]*schemas.Index |
|
|
|
var err error |
|
|
|
var err error |
|
|
|