I propose add this feature, it conveniently when use a external db tools for browse tables, e.g. dbeaver.
above gem was never update since 7 years, it not works anymore after test today. (no raise exception, just comment not add) anyway, this feature not impact sequel performance, and is A feature which Active Record exists but sequel still missing. 在2018年5月2日星期三 UTC+8 下午10:48:55<[email protected]> 写道: > > Em sexta-feira, 9 de março de 2018 15:31:14 UTC-3, Jeremy Evans escreveu: >> >> On Friday, March 9, 2018 at 10:00:34 AM UTC-8, Rodrigo Rosenfeld Rosas >> wrote: >>> >>> I'd love to be able to use something like this: >>> >>> Sequel.migration do >>> change do >>> create_table(:my_table) do >>> comment "This shortly explain the purpose of this table" >>> primary_key :id >>> String :name, null: false >>> end >>> end >>> end >>> >>> Or maybe create_table :my_table, comment: 'my_comment' do... >>> >>> Having to resort to something like this is not ideal because it would >>> require a separate migration, since Sequel Migrations doesn't support AR >>> "reversible" feature inside a change block: >>> >>> DB << "comment on table my_table is 'this explains the purpose of this >>> table'" >>> >>> I couldn't find anything related to that looking at Sequel's >>> documentation. >>> >> >> This external extension is linked from the plugin page: >> https://github.com/mpalmer/sequel-pg-comment >> >> Sequel doesn't have code internally to handle database comments, but if >> it is something you are planning to do a lot, I recommend using the >> external extension. >> >> > Thanks, I'll take a look at it :) > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/4c5bee5a-71f0-48ef-b81c-ed3494309349n%40googlegroups.com.
