Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this package? #32

Open
kenjis opened this issue Dec 19, 2021 · 5 comments
Open

How to use this package? #32

kenjis opened this issue Dec 19, 2021 · 5 comments

Comments

@kenjis
Copy link

kenjis commented Dec 19, 2021

I read README, but I don't get how to use this package.

I ran php spark schemas, but all I got is the messagesuccess.

https://github.com/tattersoftware/codeigniter4-schemas#features

View your entire database mapped out in a cascading structure
Get helpful advice on optimizations to your database structure with schema analysis
Backup, restore, or deploy an entire database structure between servers or environments
Generate CodeIgniter 4 migration files from an existing database

How?

@MGatner
Copy link
Collaborator

MGatner commented Dec 19, 2021

If you want to view the generated Schema it will appear in your Debug Toolbar, or you can output it to CLI using php spark schemas -print.

Not all of the items you mentioned are completed - see the "Development" section at the end of the README. I started on Migration publishing (see the publish-migration branch) but the client project that needed it ran out of funds so I moved to other priorities. There is a lot that could still be done here but ultimately my needs for this library were to support Tatter\Relations - so while I still intend to finish this some day it is not a currently a priority.

@MGatner
Copy link
Collaborator

MGatner commented Jan 14, 2022

@kenjis Did I answer your question?

@kenjis
Copy link
Author

kenjis commented Jan 14, 2022

Do you mean Migration publishing is generating migration files from an existing database?
There are a lot of technical terms in the README, and I can't get what exactly means.
So it is difficult to understand this package.

I just wanted to try "Generate CodeIgniter 4 migration files from an existing database1", but it is not implemented yet.

@kenjis
Copy link
Author

kenjis commented Jan 14, 2022

All the features marked as 1 are not implemented yet, right?
https://github.com/tattersoftware/codeigniter4-schemas#features

@MGatner
Copy link
Collaborator

MGatner commented Jan 15, 2022

That's correct. I can update the README to be a bit more clear. This package is old and needs some refreshing. It was my main focus for a while but I took a job with a client that caused me to drop active development so many of those planned features are in limbo.

Migration Publishing was the next feature. I started work on it, you can check out the publish-migration branch. I don't recall how much more had to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants