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

Support Comments on Table / Columns #422

Open
sqlalchemy-bot opened this issue Mar 17, 2017 · 12 comments
Open

Support Comments on Table / Columns #422

sqlalchemy-bot opened this issue Mar 17, 2017 · 12 comments

Comments

@sqlalchemy-bot
Copy link
Owner

Migrated issue, originally created by Brice Maron (emerzh)

Hi,
it seems that sqlalchemy supports comments on objects
(https://bitbucket.org/zzzeek/sqlalchemy/issues/1546/feature-request-commenting-db-objects)
which is awesome!

it could be really cool if it can be integrated to alembic as well

@sqlalchemy-bot
Copy link
Owner Author

Michael Bayer (zzzeek) wrote:

yeap....well that's SQLA 1.2 for a few months from now, should be an easy add to alembic...

@sqlalchemy-bot
Copy link
Owner Author

Brice Maron (emerzh) wrote:

Hi,
know that SQLA 1.2 is release and becoming more stable (with the dot release) is there something new on this front ?

Thanks for your work :)

@sqlalchemy-bot
Copy link
Owner Author

Changes by Michael Bayer (zzzeek):

  • added labels: op directives
  • set milestone to "tier 1"

@sqlalchemy-bot
Copy link
Owner Author

Michael Bayer (zzzeek) wrote:

this impacts autogenerate, as far as rendering "comment" in Table/ Column objects. from there, there is the possiblity of allowing alterations of comments. but we should start w/ the autogenerate part because that is more obvious and simple.

@sqlalchemy-bot
Copy link
Owner Author

Changes by Michael Bayer (zzzeek):

  • removed labels: op directives
  • added labels: autogenerate - rendering

@sqlalchemy-bot
Copy link
Owner Author

Sebastian Wehrmann (sweh) wrote:

Any news on this one? Do u need help with the implementation?

@sqlalchemy-bot
Copy link
Owner Author

Mike Waites (mikeywaites) wrote:

Hi @sweh

I picked this up yesterday and have started working on it. I think i'm pretty much done however, Mike's away until Wednesday next week and there's a few things I need to run past him regarding my fix. I'll make sure I keep you posted

@sqlalchemy-bot
Copy link
Owner Author

Sebastian Wehrmann (sweh) wrote:

Hi Mike,

any chance you can pass me a diff or link to the branch with your fix?

Thanks in advance,
Sebastian

@sqlalchemy-bot
Copy link
Owner Author

Michael Bayer (zzzeek) wrote:

@sweh the work Mike was doing can be seen at mikeywaites/alembic#1

@sqlalchemy-bot
Copy link
Owner Author

Sebastian Wehrmann (sweh) wrote:

Hi Michael,

thanks for the pointer to the github repository. I tried Mikes work and it works quite well so far, except for autogenerating the proper alter_column statements when adding comments to an existing table. Is this going to be implemented with this ticket?

@sqlalchemy-bot
Copy link
Owner Author

Michael Bayer (zzzeek) wrote:

that's probably part of the plan, yes, as part of the compare_column routine

@sqlalchemy-bot
Copy link
Owner Author

Mike Waites (mikeywaites) wrote:

Hi @sweh

Firstly apologies for taking so long on getting anywhere with this. I moved house across country right as i started working on this and it's taken me a while to get back into the swing of things. I just wanted to give you an update on where i'm at and let you know i've not stopped.

I took a slight detour to get some things set up to make it easier for myself and others to work with the various backends alembic/sqlalchemy projects support. Having done that I'll be spending some time to integrate my progress so far into the workflow @zzzeek uses so that we're all singing the same song.

I am pretty close to getting this finished I think so if you'd be happy to help test that would be a great help.

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

No branches or pull requests

1 participant