forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-6.0.1-6.0.2.sql
102 lines (85 loc) · 2.42 KB
/
update-6.0.1-6.0.2.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
93
94
95
96
97
98
99
100
101
102
alter table AssetEntry add socialInformationEquity DOUBLE;
alter table Company add maxUsers INTEGER;
COMMIT_TRANSACTION;
update Company set maxUsers = 0;
update ExpandoTable set name = 'CUSTOM_FIELDS' where name = 'DEFAULT_TABLE';
alter table LayoutSet add settings_ TEXT null;
update MBMessage set categoryId = -1 where groupId = 0;
update MBThread set categoryId = -1 where groupId = 0;
alter table PasswordPolicy add minAlphanumeric INTEGER;
alter table PasswordPolicy add minLowerCase INTEGER;
alter table PasswordPolicy add minNumbers INTEGER;
alter table PasswordPolicy add minSymbols INTEGER;
alter table PasswordPolicy add minUpperCase INTEGER;
alter table PasswordPolicy add resetTicketMaxAge LONG;
COMMIT_TRANSACTION;
update PasswordPolicy set minAlphanumeric = 0;
update PasswordPolicy set minLowerCase = 0;
update PasswordPolicy set minNumbers = 0;
update PasswordPolicy set minSymbols = 0;
update PasswordPolicy set minUpperCase = 0;
update PasswordPolicy set resetTicketMaxAge = 86400;
create table SocialEquityAssetEntry (
equityAssetEntryId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
assetEntryId LONG,
informationK DOUBLE,
informationB DOUBLE,
informationEquity DOUBLE
);
create table SocialEquityHistory (
equityHistoryId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
createDate DATE null,
personalEquity INTEGER
);
create table SocialEquityLog (
equityLogId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
assetEntryId LONG,
actionId VARCHAR(75) null,
actionDate INTEGER,
type_ INTEGER,
value INTEGER,
validity INTEGER,
active_ BOOLEAN
);
create table SocialEquitySetting (
equitySettingId LONG not null primary key,
groupId LONG,
companyId LONG,
classNameId LONG,
actionId VARCHAR(75) null,
type_ INTEGER,
value INTEGER,
validity INTEGER
);
create table SocialEquityUser (
equityUserId LONG not null primary key,
groupId LONG,
companyId LONG,
userId LONG,
contributionEquity DOUBLE,
participationK DOUBLE,
participationB DOUBLE,
participationEquity DOUBLE,
personalEquity DOUBLE
);
create table Ticket (
ticketId LONG not null primary key,
companyId LONG,
createDate DATE null,
classNameId LONG,
classPK LONG,
key_ VARCHAR(75) null,
expirationDate DATE null
);
alter table User_ add socialContributionEquity DOUBLE;
alter table User_ add socialParticipationEquity DOUBLE;
alter table User_ add socialPersonalEquity DOUBLE;