- or download this
CREATE TABLE MyappType (
Id INTEGER NOT NULL UNIQUE
...
FOREIGN KEY(MyappTypeId) REFERENCES MyappType(Id)
# ...
);
- or download this
DBIx::Class::Schema::Loader::make_schema_at(
'Myapps::Model::Schema',
...
column_accessors => 'preserve',
},
);
- or download this
...
__PACKAGE__->has_many(
...
"cascade_delete" => "0",
},
);
- or download this
...
__PACKAGE__->belongs_to(
...
"on_update" => "NO ACTION",
},
);