interchange/TableEditor

Require created and last_modified field

Opened this issue · 1 comments

In Interchange6::Schema we are using created and last_modified fields which are defined like that:

"created",
{ data_type => "datetime", set_on_create => 1, is_nullable => 0 },
"last_modified",
{ data_type => "datetime", set_on_create => 1, set_on_update => 1, is_nullable => 0 },

So they are actually not required, also created should keep its value on updates and last_modified should be set by the result class.

Regards
Racke

They should probably be set as readonly or hidden. Or did i misunderstood ?

Like so:
PACKAGE->columns_info->{created}->{readonly} = 1;