Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949965
inportal_upgrade_v1.1.1.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 29, 9:29 AM
Size
618 B
Mime Type
text/x-php
Expires
Sat, Oct 31, 9:29 AM (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
963609
Attached To
rMINC Modules.In-Commerce
inportal_upgrade_v1.1.1.php
View Options
<?php
linkCustomFields
(
'In-Commerce'
,
'p'
,
2
);
linkCustomFields
(
'KERNEL'
,
'c'
,
1
);
$application
=&
kApplication
::
Instance
();
$query
=
'REPLACE INTO '
.
TABLE_PREFIX
.
'CategoryItems (CategoryId, ItemResourceid, Primarycat, ItemPrefix, Filename)
SELECT
ci.CategoryId,
ci.ItemResourceId,
ci.PrimaryCat,
\'
p
\'
AS ItemPrefix,
i.Filename as Filename
FROM `'
.
TABLE_PREFIX
.
'Products` as i
LEFT JOIN '
.
TABLE_PREFIX
.
'CategoryItems as ci
ON ci.ItemResourceId = i.ResourceId;'
;
$application
->
Conn
->
Query
(
$query
);
moveItemTemplatesToCustom
(
'In-Commerce'
,
'p'
);
?>
Event Timeline
Log In to Comment