Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 630 Bytes
1 | class ConvertMysqlToInnodb < ActiveRecord::Migration |
2 | def self.up |
3 | config = ActiveRecord::Base.configurations |
4 | begin |
5 | STDERR.puts "Migrating all existing tables to InnoDB" |
6 | schema = [] |
7 | select_all('SHOW TABLES').inject([]) do |schema, table| |
8 | schema << "ALTER TABLE #{table.to_a.first.last} ENGINE=InnoDB" |
9 | end |
10 | schema.each { |line| execute line } |
11 | end if config[RAILS_ENV]['adapter'] == 'mysql' unless $schema_generator |
12 | end |
13 | |
14 | def self.down |
15 | # don't do anything |
16 | # this is a one-way migration, but it's not "irreversable" |
17 | # because it doesn't change any code logic |
18 | end |
19 | end |