'Restarting' Akelos Applications

0 views
Skip to first unread message

tom

unread,
Sep 23, 2007, 1:52:24 PM9/23/07
to Akelos PHP Framework
Hi,

I just started trying out akelos and got a first test application
running. I created a database table using migrations linke this:

function up_1() {
$this->createTable('addresses', "id, gender string(1) default ' ',
firstname(100), lastname(100), pos(100), telephone(30), mobile(30),
fax(30), email(100), newsletter boolean, faxletter boolean, password,
created_at, updated_at");
}

Then I uninstalled the migration, changed some field names and re-
installed it. Now my controller is still looking for the old fields
with the old names.

How can I tell akelos/ActiveRecord to reload the table structure?

I think in rails, changing the models requires a server restart to
make ActiveRecord reload the table descriptions. I already restarted
my apache, but with no success. Any hints?

Cheers,

Tom

bermi

unread,
Sep 23, 2007, 3:15:48 PM9/23/07
to Akelos PHP Framework
Tom, Akelos stores DB schema on sessions when running on "production"
mode (this will change in future versions).

I you are on a "development" environment schema cache is cleared on
every request, no need to restart.

Regards,

Bermi

Reply all
Reply to author
Forward
0 new messages