Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库表更新问题 #111

Open
SiterZzz opened this issue Sep 6, 2019 · 1 comment
Open

数据库表更新问题 #111

SiterZzz opened this issue Sep 6, 2019 · 1 comment

Comments

@SiterZzz
Copy link

SiterZzz commented Sep 6, 2019

一个类新增了两个字段 我使用 bg_cover存的 查询的时候 如下代码:

//    [LRAppConfigInfoModel bg_update:nil version:99999];
    
    LRAppConfigInfoModel * model = [LRAppConfigInfoModel new];
    
    NSArray* finfAlls = [LRAppConfigInfoModel bg_findAll:nil];
    
    if (finfAlls.count == 1){
        model = finfAlls[0];
    }else{
        [LRAppConfigModel initAppConfig];
        return nil;
    }
    
    return model;

提示:
table LRAppConfigInfoModel has no column named BG_teacher_home_url 2019-09-06 10:53:36.112920+0800 lredu[903:94394] DB Error: 1 "table LRAppConfigInfoModel has no column named BG_teacher_home_url"

最后加上

[LRAppConfigInfoModel bg_update:nil version:99999];

也不行

@SiterZzz
Copy link
Author

SiterZzz commented Sep 6, 2019

很急求解决,项目快上线了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant