浏览代码

[积分][修改]:用户积分添加默认值0 SQL

release_toaliyun_real
hanxueda 7 年前
父节点
当前提交
523b64fe66
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      mallinkAdmin/src/main/resources/db/migration/V201904231317__ADD_DEFAULT_ZERO_CREDIT.sql

+ 4
- 0
mallinkAdmin/src/main/resources/db/migration/V201904231317__ADD_DEFAULT_ZERO_CREDIT.sql 查看文件

@@ -0,0 +1,4 @@
alter table wx_c_user_basic_info alter column credit set default 0;
alter table wx_c_user alter column credit set default 0;
update wx_c_user_basic_info set credit = 0 where credit is null;
update wx_c_user set credit = 0 where credit is null;

正在加载...
取消
保存