Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
76081f24
Commit
76081f24
authored
Jul 17, 2017
by
Shruti Holennavar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed version to 2.0.7 and resetting processing field to 0 when notifications are processed 100%
parent
3a4a37a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Model/Cron.php
Model/Cron.php
+1
-0
Setup/UpgradeSchema.php
Setup/UpgradeSchema.php
+4
-4
etc/module.xml
etc/module.xml
+1
-1
No files found.
Model/Cron.php
View file @
76081f24
...
...
@@ -331,6 +331,7 @@ class Cron
// set done to true
$dateEnd
=
new
\DateTime
();
$notification
->
setDone
(
true
);
$notification
->
setProcessing
(
false
);
$notification
->
setUpdatedAt
(
$dateEnd
);
$notification
->
save
();
$this
->
_adyenLogger
->
addAdyenNotificationCronjob
(
...
...
Setup/UpgradeSchema.php
View file @
76081f24
...
...
@@ -59,8 +59,8 @@ class UpgradeSchema implements UpgradeSchemaInterface
$this
->
updateSchemaVersion204
(
$setup
);
}
if
(
version_compare
(
$context
->
getVersion
(),
'2.0.
6
'
,
'<'
))
{
$this
->
updateSchemaVersion20
6
(
$setup
);
if
(
version_compare
(
$context
->
getVersion
(),
'2.0.
7
'
,
'<'
))
{
$this
->
updateSchemaVersion20
7
(
$setup
);
}
$setup
->
endSetup
();
...
...
@@ -269,12 +269,12 @@ class UpgradeSchema implements UpgradeSchemaInterface
/**
* Upgrade to 2.0.
6
* Upgrade to 2.0.
7
*
* @param SchemaSetupInterface $setup
* @return void
*/
public
function
updateSchemaVersion20
6
(
SchemaSetupInterface
$setup
)
public
function
updateSchemaVersion20
7
(
SchemaSetupInterface
$setup
)
{
$connection
=
$setup
->
getConnection
();
$tableName
=
$setup
->
getTable
(
'adyen_notification'
);
...
...
etc/module.xml
View file @
76081f24
...
...
@@ -24,7 +24,7 @@
-->
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:Module/etc/module.xsd"
>
<module
name=
"Adyen_Payment"
setup_version=
"2.0.
6
"
>
<module
name=
"Adyen_Payment"
setup_version=
"2.0.
7
"
>
<sequence>
<module
name=
"Magento_Sales"
/>
<module
name=
"Magento_Quote"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment