From dae9d0a5fb1e28ea7f33c0589788628902fa30f7 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 13 Apr 2007 19:14:42 +0000 Subject: [PATCH] Don't need these any more either. git-svn-id: http://svn.simon-cozens.org/memories/trunk@67 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- Memories/SystemTag.pm | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Memories/SystemTag.pm b/Memories/SystemTag.pm index 3a9fbbf..0383db2 100644 --- a/Memories/SystemTag.pm +++ b/Memories/SystemTag.pm @@ -35,28 +35,4 @@ sub view :Exported { package Memories::SystemTagging; use base qw(Memories::DBI); use Class::DBI::Pager; -__PACKAGE__->table("system_tagging"); -__PACKAGE__->columns(TEMP => qw/count/); -__PACKAGE__->columns(Essential => qw/id tag photo/); -__PACKAGE__->set_sql(summary => qq/ -SELECT id, system_tag, count(*) AS count -FROM system_tagging -GROUP BY system_tag -ORDER BY count DESC -LIMIT 50 - /); -__PACKAGE__->set_sql(all => qq/ -SELECT id, tag, count(*) AS count -FROM system_tagging -GROUP BY system_tag -ORDER BY count DESC - /); -Memories::SystemTagging->has_a("photo" => "Memories::Photo"); -Memories::SystemTagging->has_a("tag" => "Memories::SystemTag"); - -Memories::Photo->has_many(system_tags => ["Memories::SystemTagging" => "system_tag"]); -Memories::Photo->has_many(system_taggings => "Memories::SystemTagging"); -Memories::SystemTag->has_many(photos => ["Memories::SystemTagging" => "photo"] ); -Memories::SystemTag->has_many(system_taggings => "Memories::SystemTagging"); - 1; -- 2.39.5