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:
parent
469c5a1aea
commit
71e0fd92d6
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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.
|
Loading…
Reference in New Issue