[Akelos PHP Framework] #280: Installer cannot handle a column named "attributes"

1 view
Skip to first unread message

Akelos PHP Framework

unread,
May 17, 2010, 4:10:48 PM5/17/10
to
#280: Installer cannot handle a column named "attributes"
-------------------------------------------+--------------------------------
Reporter: Oliver | Type: defect
Status: new | Priority: minor
Milestone: 1.3.0 | Component: Installer
Keywords: column table database install |
-------------------------------------------+--------------------------------
= Issue =
When using a custom column named "attributes" in an installer, the
migration-script fails.

== Example ==
{{{
<?php
class SettingInstaller extends AkInstaller
{
function up_1()
{
$this->createTable('settings', "
id,
attributes
");
}

function down_1()
{
$this->dropTable('settings');
}
}
?>
}}}

== Installing using ==

./script/migrate settings install

== Fails with ==

{{{
-----
(mysqlt): SHOW TABLES
-----
-----
(mysqlt): SELECT version FROM akelos_migrations WHERE name='settings'
-----

[settings] Upgrading to version 1-----
(mysqlt): SET AUTOCOMMIT=0
-----
-----
(mysqlt): BEGIN
-----
-----
(mysqlt): SHOW TABLES
-----
-----
(mysqlt): SHOW COLUMNS FROM ak_active_records
-----
1146: Table 'database.ak_active_records' doesn't exist
}}}

--
Ticket URL: <http://trac.akelos.org/ticket/280>
Akelos PHP Framework <http://www.akelos.org/>
Akelos PHP Framework

--
You received this message because you are subscribed to the Google Groups "Akelos PHP Framework - Ticket Log" group.
To post to this group, send email to akelos-php...@googlegroups.com.
To unsubscribe from this group, send email to akelos-php-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akelos-php-framework?hl=en.

Akelos PHP Framework

unread,
May 18, 2010, 7:02:37 AM5/18/10
to
#280: Installer cannot handle a column named "attributes"
-------------------------------------------+--------------------------------
Reporter: Oliver | Owner: bermi
Type: defect | Status: assigned
Priority: minor | Milestone: 1.3.0
Component: Installer | Resolution:
Keywords: column table database install |
-------------------------------------------+--------------------------------
Changes (by bermi):

* owner: => bermi
* status: new => assigned

Comment:

I guess it's due the fact that Akelos Active Records implement a
getAttributes() method and it produces some king of clash.

For Akelos 2 one of my goals is removing all possible naming conflicts
like "attributes", "model" and "type"

--
Ticket URL: <http://trac.akelos.org/ticket/280#comment:1>
Reply all
Reply to author
Forward
0 new messages