Hello,
I am trying Fabrik again after a long time, so this could be obvious and I am not seeing it.
This is my Hello World.
Joomla 3.3.1, Fabrik 3.1
I have a table like this:
I first created a new connection (different schema on the same server) for this db, user and pw.
Second, a new list:
- A name,
- Data -> Connection -> Select the created connection.
- Database Table -> pessoa
It can be saved fine.
When I come back to the list, the primary key is already chosen (id), which Fabrik detects fine.
Now, when I save the list (even if not changed) I get the error:
1025 Error on rename of './test/#sql-532_177' to './sbee/pessoa' (errno: 150) SQL=ALTER TABLE `test` CHANGE `id` `id` int(11) NOT NULL AUTO_INCREMENT
Basically it is taking out the 'unsigned' part.
The reason is that there are some foreign keys pointing to this PK.
So, the question is: Why Fabrik is trying to change the PK?
Is it sane to alter a table struture without notice?
Why does Fabrik was a SIGNed PK?
If this a bug or am I missing something?
thanks
-rsd
I am trying Fabrik again after a long time, so this could be obvious and I am not seeing it.
This is my Hello World.
Joomla 3.3.1, Fabrik 3.1
I have a table like this:
CREATE TABLE IF NOT EXISTS `pessoa` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`nome` varchar(255) NOT NULL,
`dataNascimento` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
I first created a new connection (different schema on the same server) for this db, user and pw.
Second, a new list:
- A name,
- Data -> Connection -> Select the created connection.
- Database Table -> pessoa
It can be saved fine.
When I come back to the list, the primary key is already chosen (id), which Fabrik detects fine.
Now, when I save the list (even if not changed) I get the error:
1025 Error on rename of './test/#sql-532_177' to './sbee/pessoa' (errno: 150) SQL=ALTER TABLE `test` CHANGE `id` `id` int(11) NOT NULL AUTO_INCREMENT
Basically it is taking out the 'unsigned' part.
The reason is that there are some foreign keys pointing to this PK.
So, the question is: Why Fabrik is trying to change the PK?
Is it sane to alter a table struture without notice?
Why does Fabrik was a SIGNed PK?
If this a bug or am I missing something?
thanks
-rsd