Model Create from 'Table already exists' Issue

dara | 3 years ago

Hi,

I am very new to Recess and just decided to port a ROR app to Recess. I have many MySQL tables already existing so I would like to create as many models from them. "Table already exists." option is not working in my case.

Undefined index: fields

Location: Line 202 of /Users/darita/Sites/recess/recess/lib/recess/apps/tools/controllers/RecessToolsAppsController.class.php

202: $propertyNames = $values['fields'];

--

/* My table looks like below created under Recess DB. */

CREATE TABLE `videos` (
`id` int(11) NOT NULL auto_increment,
`cast_id` int(11) default NULL,
`file` varchar(255) collate utf8_turkish_ci default NULL,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci

It would be a big time saver to have this option working.





Welcome KrisJordan!

Web: http://www.krisjordan.com/

Location: North Carolina

Edit Profile