Gerhard Potgieter
36b6bd79c0
Add update routines to recreate user roles
2018-07-10 10:30:11 +02:00
Rodrigo Primo
5c5cddf26a
Add @return for wc_update_350_order_customer_id() docblock
2018-06-18 15:17:39 -03:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
Gerhard Potgieter
36d1c318cb
Download Log FK Contraint check ( #20478 )
...
This PR introduces a check on the permission_id FK to ensure that it is not added multiple times on upgrades. It also names the key specifically to ensure future changes to the key can be targeted properly and removes old keys that were added since 3.4.0.
* Add FK check before adding the FK. Also give the FK a name to avoid auto generated names and duplicate keys.
* Remove additional OR
* Remove additional OR
* Final FK check query
* Add foreign key cleanup routine to 3.4.3 db version
* Only check on named foreign key now that we have a cleanup routine in place, use specific phpcignore
* Rework formatting of SQL query
* Change way to fetch and add FK, can't use procedural SQL, needs to be done via statements.
* Add table name to lookup
* Only clean up FK on the wc_download_log table
* Remove erenouse bracket
2018-06-18 11:47:47 -03:00
Rodrigo Primo
397e40f165
Fix indentation
2018-06-11 11:14:04 -03:00
Rodrigo Primo
f1f49bb27a
Add WC 3.5.0 DB version update callback
2018-06-11 10:54:02 -03:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03:00
Mike Jolley
048b95e135
Correct code to run again
2018-05-25 16:36:07 +01:00
Mike Jolley
083c994732
Break up update routine and allow it run to multuple times
2018-05-25 14:18:19 +01:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
Mike Jolley
250b7aecd5
Update function to set last active
2018-05-01 14:13:38 +01:00
Rodrigo Primo
697421a9fa
Cache query to get the list of orders placed by the user ID 1
2018-04-19 10:14:02 -03:00
Rodrigo Primo
923eeb2e43
Monitor only memory limit while running the data migration
...
Turns out WP_Background_Process uses an arbitrary value of 20 seconds of wall clock time to measure PHP "time limit" (b0617a13c4/includes/libraries/wp-background-process.php (L385)
) instead of cpu time which apparently it is not easy to measure in PHP. Since system calls (like database calls) are not included in the PHP maximum execution time, 20 seconds of wall clock is often way less than PHP time limit.
Thus, this commit removes the call to WP_Background_Process::time_exceeded() while running the function to migrate the post meta _customer_user to the field post_author. If the script times out, WP_Background_Process will restart it.
2018-04-17 16:07:18 -03:00
Rodrigo Primo
e02f3fbec4
Migrate data to post_author in a single go when using WP-CLI
2018-04-17 16:07:11 -03:00
Mike Jolley
ba3da2fc1f
Use original code
2018-04-17 16:18:14 +01:00
Mike Jolley
9b043868e9
Update routine
2018-04-17 16:13:44 +01:00
Rodrigo Primo
ccf10f6ab2
Punt to WC version 3.5.0
2018-04-17 11:12:46 -03:00
Rodrigo Primo
4123cc6f7d
Migrate _customer_user to post_author in batches
...
This will make the update slower but safer when running in cheap servers.
2018-04-16 11:15:42 -03:00
Rodrigo Primo
35998e56cb
Reposition wc_update_340_order_customer_id() function
...
So that it is listed together with WC 3.3 update functions
2018-04-11 15:23:12 -03:00
Rodrigo Primo
36ca6ef901
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-11 15:19:58 -03:00
Peter Fabian
a3d6dc1775
Changed county codes for Ireland according to ISO
2018-04-09 23:15:09 +02:00
Rodrigo Primo
a7d2c5dd6e
Merge branch 'master' into update/use-post-author-for-customer-id
2018-04-03 15:13:07 -03:00
Claudio Sanches
a597ba3b84
Use short ABSPATH check
2018-03-08 18:31:01 -03:00
Mike Jolley
e6f54912ee
Merge branch 'master' into fix/18680
2018-01-31 17:56:46 +00:00
Mike Jolley
1f2046a3e3
Revert columns to 4
2018-01-31 17:55:17 +00:00
Claudio Sanches
5533f85450
Fixed missing user_id in webhook migration script
...
Closes #18695
2018-01-31 15:09:21 -02:00
Mike Jolley
33ec416214
On update, set woocommerce_catalog_columns to old default of 4
2018-01-31 12:33:30 +00:00
Mike Jolley
e85338d8d3
Import ratio from old settings
2018-01-25 12:34:28 +00:00
James Allan
b2510773b1
On 3.3 upgrade set PayPal sandbox API credentials
2018-01-23 12:53:17 +10:00
Rodrigo Primo
1f39f7d633
Add filter to list of post_types used to build the query to copy _customer_user to post_author
2018-01-19 13:45:30 -02:00
Rodrigo Primo
7f43c39f2f
Bump WC version to 3.4.0
2018-01-09 15:42:13 -02:00
Rodrigo Primo
bf5c6f17a7
phpcs fixes
2018-01-09 15:42:08 -02:00
Rodrigo Primo
ad4304450d
Set post_author to 0 for refund orders
2017-12-08 12:32:45 -02:00
Rodrigo Primo
fee1dcf5f9
Merge branch 'master' into update/use-post-author-for-customer-id
2017-12-08 10:09:57 -02:00
Claudio Sanches
05987ff3be
Removed unresolved merge conflicts
2017-12-07 19:06:07 -02:00
Claudio Sanches
2f6f6112c2
Merge branch 'master' into feature/webhook-crud
2017-12-07 18:21:52 -02:00
Jonathan Belcher
51c66d7f7a
Remove automatic spacing changes made by my editor
2017-12-05 12:27:13 -05:00
Jonathan Belcher
c39a181cb6
Clear addons transients on update to 3.3.0
2017-12-05 12:23:51 -05:00
Claudio Sanches
0f4f8a3f16
Merge branch 'master' into feature/webhook-crud
2017-12-04 12:37:10 -02:00
Mike Jolley
0a9485c465
Merge branch 'master' into feature/11259
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/list-tables/class-wc-admin-list-table-products.php
# includes/class-wc-install.php
# includes/wc-update-functions.php
2017-12-04 14:14:03 +00:00
Claudio Sanches
c6f8e95b97
Merge branch 'master' into feature/webhook-crud
2017-11-28 15:09:10 -02:00
Rodrigo Primo
61c7abce4f
First pass at using post_author instead of the post meta '_customer_user'
2017-11-28 10:13:30 -02:00
Claudio Sanches
8ed6e7436f
Merge pull request #17909 from woocommerce/update/phpcs-violations
...
Fix some PHPCS violations
2017-11-27 18:42:24 -02:00
Mike Jolley
856ae87d54
Update method
2017-11-23 15:44:17 +00:00
Rodrigo Primo
5cc84925e3
Typo
2017-11-23 12:17:54 -02:00
Rodrigo Primo
5f0e722ca4
Fix PHPCS violations in includes/wc-update-functions.php
2017-11-23 12:17:21 -02:00
Rodrigo Primo
e12fa54bc6
phpcbf automatic coding standard fixes
2017-11-23 12:16:47 -02:00
claudiulodro
a878b0cde5
Some phpcs
2017-11-22 14:03:26 -08:00
claudiulodro
99aefc91f3
Changes from feedback
2017-11-21 14:08:17 -08:00
claudiulodro
afb74d4f7c
Should be a number
2017-11-20 14:24:55 -08:00