Fix plugin activation see #8481

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent e9908466e5
commit 7ee7e9a154
  1. 8
      plugin/buycourses/database.php

@ -168,7 +168,7 @@ $saleCommissions->addColumn(
['unsigned' => true]
);
$saleCommissions->setPrimaryKey(['id']);
$saleTable = $pluginSchema->createTable(BuyCoursesPlugin::TABLE_SALE);
$saleTable->addColumn(
'id',
@ -231,7 +231,7 @@ $paypalExtraField = Database::select(
],
'first'
);
if (!$paypalExtraField) {
Database::insert(
$extraFieldTable,
@ -242,10 +242,10 @@ if (!$paypalExtraField) {
'display_text' => 'Paypal',
'default_value' => '',
'field_order' => 0,
'visible' => 1,
'visible_to_self' => 1,
'changeable' => 1,
'filter' => 0,
'created_at' => getdate()
'created_at' => api_get_utc_datetime()
]
);
}

Loading…
Cancel
Save