Move the base table migration classes outside CustomOrderTable directory

These classes are generic and don't depend on the custom orders table
functionality, so they are moved from src/Database/Migrations/CustomOrderTable
to just src/Database/Migrations.
This commit is contained in:
Nestor Soriano 2022-05-19 10:26:59 +02:00
parent 469c5a1aea
commit 71e0fd92d6
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
7 changed files with 11 additions and 7 deletions

View File

@ -5,6 +5,8 @@
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable;
use Automattic\WooCommerce\Database\Migrations\MetaToMetaTableMigrator;
/** /**
* Helper class to migrate records from the WordPress post meta table * Helper class to migrate records from the WordPress post meta table
* to the custom orders meta table. * to the custom orders meta table.

View File

@ -5,6 +5,8 @@
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable;
use Automattic\WooCommerce\Database\Migrations\MetaToCustomTableMigrator;
/** /**
* Helper class to migrate records from the WordPress post table * Helper class to migrate records from the WordPress post table
* to the custom order addresses table. * to the custom order addresses table.

View File

@ -5,6 +5,8 @@
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable;
use Automattic\WooCommerce\Database\Migrations\MetaToCustomTableMigrator;
/** /**
* Helper class to migrate records from the WordPress post table * Helper class to migrate records from the WordPress post table
* to the custom order operations table. * to the custom order operations table.

View File

@ -5,6 +5,8 @@
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable;
use Automattic\WooCommerce\Database\Migrations\MetaToCustomTableMigrator;
/** /**
* Helper class to migrate records from the WordPress post table * Helper class to migrate records from the WordPress post table
* to the custom order table (and only that table - PostsToOrdersMigrationController * to the custom order table (and only that table - PostsToOrdersMigrationController

View File

@ -3,9 +3,7 @@
* Generic migration class to move any entity, entity_meta table combination to custom table. * Generic migration class to move any entity, entity_meta table combination to custom table.
*/ */
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations;
use Automattic\WooCommerce\Database\Migrations\MigrationHelper;
/** /**
* Base class for implementing migrations from the standard WordPress meta table * Base class for implementing migrations from the standard WordPress meta table

View File

@ -3,9 +3,7 @@
* Generic Migration class to move any meta data associated to an entity, to a different meta table associated with a custom entity table. * Generic Migration class to move any meta data associated to an entity, to a different meta table associated with a custom entity table.
*/ */
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations;
use Automattic\WooCommerce\Database\Migrations\MigrationHelper;
/** /**
* Base class for implementing migrations from the standard WordPress meta table * Base class for implementing migrations from the standard WordPress meta table

View File

@ -3,7 +3,7 @@
* Base class for all the WP posts to order table migrator. * Base class for all the WP posts to order table migrator.
*/ */
namespace Automattic\WooCommerce\Database\Migrations\CustomOrderTable; namespace Automattic\WooCommerce\Database\Migrations;
/** /**
* Base class for implementing WP posts to order tables migrations handlers. * Base class for implementing WP posts to order tables migrations handlers.