我有一个用appcelerator的钛制作的现有应用程序。它目前有一个数据库,但我想将其升级到加密数据库。我正在使用appcelerator的加密数据库模块。如果我删除本地数据库并构建应用程序干净就可以了,问题是当我尝试从现有数据库迁移到加密数据库时。我收到这个错误:
file is encrypted or is not a database
message = "Couldn't open database and migrate";
Script Error Module "alloy/models/table.js" failed to leave a valid exports object
我的导出定义如下:
'config': {
columns: columns,
defaults: {},
adapter: {
"type": "enc.db",
"collection_name": "table",
"idAttribute": "LocalID",
"db_name": "_alloy_.enc.db"
}
},