Help for this page

Select Code to Download


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