Migrate specific migration

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Gagik
Posts: 38
Joined: 05 Dec 2023, 06:58

Migrate specific migration

Post by Gagik » 07 Feb 2024, 08:12

Hello,

PHP version: 8.1
Laravel version: 10
Aimeos version: 2023.10
Environment: Linux

In my package "setup/default/schema" directory I have two migration files: "index.php" and "price.php". I want to run only "index.php" migration via "php artisan aimeos:setup" command. Does is exist any prefix for this command or any another solution ? In my situation I must run only specific migration.

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Migrate specific migration

Post by aimeos » 09 Feb 2024, 09:59

It's not possible to execute a specific setup task to do only one migration because they depend on each other and must migrate the database from a previous state to the latest state completely. Thus, you have to implement your setup tasks in a way so they detect the current state and update the database if necessary - just like the Aimeos core setup task do.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Gagik
Posts: 38
Joined: 05 Dec 2023, 06:58

Re: Migrate specific migration

Post by Gagik » 09 Feb 2024, 10:16

Thank you.

Post Reply