Help for this page

Select Code to Download


  1. or download this
    __PACKAGE__->table("classification_rules");
    __PACKAGE__->add_columns(
    ...
    
    __PACKAGE__->set_primary_key("id");
    __PACKAGE__->add_unique_constraint( ['path'] );
    
  2. or download this
    CREATE TABLE `classification_rules` (
      `id` integer NOT NULL auto_increment,
    ...
      PRIMARY KEY (`id`),
      UNIQUE `classification_rules_path` (`path`)
    ) ENGINE=InnoDB;