Having taken a closer look at DBIx::Migrations::Directories, I've decided that I want to write my own migration tool for Perl/ORM (likely tied to Rose::DB::Object, but not necessarily). Any thoughts on how the interface should look? I'm modeling functionality at least partially on ActiveRecord from Rails.

I'm leaning towards something along the lines of having a standard migrations directory in the application with numbered migrations in the format

001.create_user_table.m 001.create_data_table.m 002.add_permissions_to_users.m ...

Within a migration you'll have something along the lines of:

sub UP { create_table( name => 'users', key => 'id', fields => { id => 'integer', username => 'string(40)', password => 'string(20)', displayname => 'string(60)', }, ); } sub DOWN { drop_table('users'); }
Although the specifics are still up in the air. I'd appreciate everyone's feedback on this.

Donald Hosek, Tech Lead at oversee.net
L.A. perl people, we're hiring.

In reply to Interface suggestions by dhosek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.