Giter VIP home page Giter VIP logo

Comments (8)

chrillep avatar chrillep commented on June 1, 2024 1

@stancl would be nice to see the status when developing, so i can check if any tenant failed a migration

from tenancy.

stancl avatar stancl commented on June 1, 2024

I don't think we need these.

from tenancy.

drbyte avatar drbyte commented on June 1, 2024

Agreed: I'm not sure these are critical.
Perhaps in a dev environment they may be useful, or for "stepped debugging", but not for normal use.
I find tenancy:migrate-fresh is enough.

from tenancy.

chrillep avatar chrillep commented on June 1, 2024

@stancl @drbyte by the way shouldnt tenancy:migrate-fresh be tenancy:migrate:fresh with a ":" to keep parity with laravels default migrate:fresh command? :)

migrate
  migrate:fresh                           Drop all tables and re-run all migrations
  migrate:install                         Create the migration repository
  migrate:refresh                         Reset and re-run all migrations
  migrate:reset                           Rollback all database migrations
  migrate:rollback                        Rollback the last database migration
  migrate:status                          Show the status of each migration
tenancy
 tenancy:install                         Install stancl/tenancy.
tenants
 tenants:list                            List tenants.
 tenants:migrate                         Run migrations for tenant(s)
 tenants:migrate-fresh                   Drop all tables and re-run all migrations for tenant(s)
 tenants:rollback                        Rollback migrations for tenant(s).
 tenants:run                             Run a command for tenant(s)
 tenants:seed                            Seed tenant database(s).

from tenancy.

chrillep avatar chrillep commented on June 1, 2024

then i could run make command

.PHONY: migrate-status ## migrate status central tenants and elastic
migrate-status:
	@printf "Central migration status:\n"
	@php artisan migrate:status
	@printf "Tenants migration status:\n"
	@php artisan tenants:migrate:status
	@printf "Elastic migration status:\n"
	@php artisan elastic:migrate:status

from tenancy.

stancl avatar stancl commented on June 1, 2024

I think if it were tenancy:migrate:fresh, artisan would create another namespace for tenancy:migrate, which isn't what we want.

from tenancy.

chrillep avatar chrillep commented on June 1, 2024

I think if it were tenancy:migrate:fresh, artisan would create another namespace for tenancy:migrate, which isn't what we want.

aaah ok to bad nvm then for tenancy:migrate:fresh :)
still would like status tho :)

from tenancy.

eskayamadeus avatar eskayamadeus commented on June 1, 2024

I would like status also

from tenancy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.