Welcome Guest, Not a member yet? Register   Sign In
spark migrate [MODULE] \ [CLASS] not reconsigned
#1

Hello community, as you will see I have the following problem, I have defined a class called ProxyWeb where looking for a migration from the cli codeigniter system, but as you will see I only run the App class migrations and what I need is to load the load of one for what function that allows me the function that runs the migration and the seeder of "ProxyWeb"


PHP Code:
php spark migrate:status
CodeIgniter v4.1.1 Command Line Tool 
Server Time2021-02-08 14:54:29 UTC-06:00

+-----------+----------------+---------------+---------+---------------------+-------+
| Namespace | 
Version        Filename      Group   Migrated On         Batch |
+-----------+----------------+---------------+---------+---------------------+-------+
App       20201005125000 add_users     | default | 2021-02-08 14:26:41 1     |
App       20201105152000 add_client    | default | 2021-02-08 14:26:42 1     |
Some      20201005125000 add_some      | ---     | ---                 | ---   |
ProxyWeb  20201005126000 proxyweb_list | ---     | ---                 | ---   |
+-----------+----------------+---------------+---------+---------------------+-------+
php spark  migrate:refresh 
PHP Code:
CodeIgniter v4.1.1 Command Line Tool Server Time2021-02-08 14:23:23 UTC-06:00 
PHP Code:
Rolling back migrations to batch:  0 
PHP Code:
        Rolling back: (App20201105152000_ 
PHP Code:
        Rolling back: (App20201005125000_ 
PHP Code:
Done rolling back migrations
PHP Code:
Running all new migrations... 
PHP Code:
        Running: (App20201005125000_App\Database\Migrations\AddUser 
PHP Code:
        Running: (App20201105152000_\AddClient 



I would like to know if it may be helpful to define some function that allows to expand this from the same module without defining within the main application.

PHP Code:
definited is:
namespace 
ProxyWeb\Database\Migrations;
and :
namespace ProxyWeb\Database\Seeds;;; 
I don't know exactly if it's helpful to define a function from .php within the module

PHP Code:
class ProxyWebServices extends CoreServices 

From now on I would appreciate any paradops to resolve this situation greetings and I remain attentive
Reply
#2

How about?
Code:
php spark migrate:refresh -all
Reply
#3

Yes this code is good work in this case
php spark migrate --all

and add
my windows 10 run linux
work in the .env
this code change
database.default.hostname = localhost => database.default.hostname = 127.1 run $ php spark migrate --all and
again rollback database.default.hostname = 127.1 => database.default.hostname = localhost

solve problem of partial mode
Reply




Theme © iAndrew 2016 - Forum software by © MyBB