This website works better with JavaScript.
Home
Explore
Help
Sign In
server
/
formallProject
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
[积分][修改]:用户积分添加默认值0 SQL
release_toaliyun_real
hanxueda
7 years ago
parent
76b8d3ab3f
commit
523b64fe66
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
View File
@@ -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;
Write
Preview
Loading…
Cancel
Save