#86 ✓resolved
Simon Rozet

Fully tested and working migrations

Reported by Simon Rozet | February 12th, 2009 @ 09:10 PM | in 0.1.9

Running #create_db on a post-migration database erase it (not in master)

Comments and changes to this ticket

  • Simon Rozet

    Simon Rozet February 12th, 2009 @ 10:28 PM

    22:19  foca_: why are migrations used when you're using datamapper?
    22:22  quik__: ?
    22:22  foca_: datamapper can be "auto migrated" from zero to create the schema
    22:22  well, if you look at migration 2
    22:23  yeah, *from zero*
    22:23  if you have integrity setup
    22:23  I'd love to set it up, but the migrations break :)
    22:23  and we release a new version with an incompatible schema
    22:23  er, master works now :)
    22:23  migrations should be an upgrade tool / task
    22:23  it is
    22:24  they don't run automatically or anything
    22:24  sr: so why was master broken on clean installs?
    22:24  I didn't read into the code cause I knew you had many patches pending
    22:24 -!- bryanl [n=bryan@sf-nat.sourcefire.com] has joined #integrity
    22:24 -!- quik__ [n=ben@c210-49-204-148.thoms2.vic.o...]
    22:24 -!-  ircname  : Ben Schwarz
    22:24 -!-  channels : #integrity #merb-cache #merb-hacking #roro +#merb 
    22:24 -!-  server   : irc.freenode.net [http://freenode.net/]
    22:24 -!- End of WHOIS
    22:24  simplicity
    22:25  we would need to differentiate if what you're doing is an install or an upgrade
    22:25  ---which might not be a bad thing
    22:25  `integrity upgrade /var/www/integrity`
    22:25  just that we did what was easiest to us
    22:25  would be sweet
    22:25  yeah
    22:25  now that I think of it :)
    22:26  Then use DataMapper.auto_migrate! for install
    22:26  hum yes, would simplify quit a lot
    22:26  feel free to give it a try ;P
    22:26  heh
    22:27  thanks for the idea anyway
  • Simon Rozet

    Simon Rozet February 14th, 2009 @ 01:22 AM

    • State changed from “new” to “review”
    • Assigned user changed from “ronin-278 (at lighthouseapp)” to “Simon Rozet”

    I have done some work towards (hopefully) fixing migrations.


  • Simon Rozet

    Simon Rozet February 16th, 2009 @ 02:08 AM

    • Tag changed from database, migration to database, migration, test
    • State changed from “review” to “open”
    • Title changed from “Migration erase database” to “Fully tested and working migrations”
  • Simon Rozet

    Simon Rozet February 19th, 2009 @ 09:06 PM

    • State changed from “open” to “resolved”

    I think everything is working as expected now (and tested)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Automated continuous integration server that doesn't suck.

Shared Ticket Bins

People watching this ticket