forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-6.0.2-6.0.3.sql
92 lines (72 loc) · 1.97 KB
/
update-6.0.2-6.0.3.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
alter table AssetEntry add classUuid VARCHAR(75) null;
alter table DLFileEntry add extension VARCHAR(75) null;
alter table DLFileVersion add extension VARCHAR(75) null;
alter table DLFileVersion add title VARCHAR(255) null;
alter table DLFileVersion add changeLog STRING null;
alter table DLFileVersion add extraSettings TEXT null;
COMMIT_TRANSACTION;
update DLFileVersion set changeLog = description;
alter table Layout add uuid_ VARCHAR(75) null;
alter table MBMessage add rootMessageId LONG;
COMMIT_TRANSACTION;
update MBMessage set rootMessageId = (select rootMessageId from MBThread where MBThread.threadId = MBMessage.threadId);
drop table SocialEquityAssetEntry;
create table SocialEquityAssetEntry (
equityAssetEntryId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
assetEntryId LONG,
informationK DOUBLE,
informationB DOUBLE
);
drop table SocialEquityHistory;
create table SocialEquityHistory (
equityHistoryId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
createDate DATE null,
personalEquity INTEGER
);
drop table SocialEquityLog;
create table SocialEquityLog (
equityLogId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
assetEntryId LONG,
actionId VARCHAR(75) null,
actionDate INTEGER,
active_ BOOLEAN,
expiration INTEGER,
type_ INTEGER,
value INTEGER
);
drop table SocialEquitySetting;
create table SocialEquitySetting (
equitySettingId LONG not null primary key,
groupId LONG,
companyId LONG,
classNameId LONG,
actionId VARCHAR(75) null,
dailyLimit INTEGER,
lifespan INTEGER,
type_ INTEGER,
uniqueEntry BOOLEAN,
value INTEGER
);
drop table SocialEquityUser;
create table SocialEquityUser (
equityUserId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
contributionK DOUBLE,
contributionB DOUBLE,
participationK DOUBLE,
participationB DOUBLE,
rank INTEGER
);
alter table User_ add facebookId LONG;
alter table WikiPageResource add uuid_ VARCHAR(75) null;