Revize ba18288a
Přidáno uživatelem Jiri Trefil před asi 2 roky(ů)
db/spade-configurations.sql | ||
---|---|---|
17 | 17 |
password varchar(255) not null |
18 | 18 |
PRIMARY KEY(id) |
19 | 19 |
); |
20 |
|
|
21 |
|
|
20 |
--declare @userId as int |
|
21 |
insert into users(email,name,password) values('default@user.com','default','2747CABBB481A433679F6DC8AAE833DD1B64452778B97E2729BD3C54DEDE0886') |
|
22 |
--set @userId = (select id from users where name='default') |
|
22 | 23 |
--rozkladova tabulka mapujici uzivatele a k nemu asociovane konfigurace |
23 | 24 |
if not exists (select * from sysobjects where name='user_configurations' and xtype='U') |
24 | 25 |
create table user_configurations ( |
25 | 26 |
userId int not null, |
26 | 27 |
configId int not null, |
28 |
configurationName nvarchar(255) not null, |
|
27 | 29 |
foreign key(userId) references users(id), |
28 | 30 |
foreign key(configId) references configurations(id), |
29 | 31 |
primary key(userId,configId) |
... | ... | |
105 | 107 |
}, |
106 | 108 |
{ |
107 | 109 |
"thresholdName": "searchSubstringsWithProjectPlan", |
108 |
"value": "%pl?n projektu%||%project plan%||%plan project%||%projektov? pl?n%"
|
|
110 |
"value": "%pl�n projektu%||%project plan%||%plan project%||%projektov� pl�n%"
|
|
109 | 111 |
} |
110 | 112 |
] |
111 | 113 |
}, |
... | ... | |
122 | 124 |
}, |
123 | 125 |
{ |
124 | 126 |
"thresholdName": "searchSubstringsWithFeedbackLoop", |
125 |
"value": "%sch?z%z?kazn?k%||%p?edveden?%z?kazn?k%||%z?kazn%demo%||%sch?z%zadavat%||%inform%sch?z%||%z?kazn%||%zadavatel%"
|
|
127 |
"value": "%sch�z%z�kazn�k%||%p�edveden�%z�kazn�k%||%z�kazn%demo%||%sch�z%zadavat%||%inform%sch�z%||%z�kazn%||%zadavatel%"
|
|
126 | 128 |
} |
127 | 129 |
] |
128 | 130 |
}, |
... | ... | |
180 | 182 |
|
181 | 183 |
|
182 | 184 |
) |
185 |
insert into user_configurations(userId,configId,configurationName) values (1,1,'default config') |
|
183 | 186 |
|
184 |
commit |
|
187 |
commit |
Také k dispozici: Unified diff
#10523 refactor datoveho modelu