diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:19:18 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:19:18 -0400 |
commit | 2099cce12c2ffb53023c3c644b329b235e442ae0 (patch) | |
tree | ec14544068e21b59c7bfd34e389344e3eaede296 /lib/sisu/v4/db_columns.rb | |
parent | v4: defaults, some cleaning (diff) |
v4: skins, remove
* remove skins
* defaults, rename class Defaults (was InfoSkin)
* sisupod, remove skin
* db
* no skin info to store, omitted from structure
* change prefix name (structure changed)
Diffstat (limited to 'lib/sisu/v4/db_columns.rb')
-rw-r--r-- | lib/sisu/v4/db_columns.rb | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/lib/sisu/v4/db_columns.rb b/lib/sisu/v4/db_columns.rb index 7c4fa9eb..4e9b9089 100644 --- a/lib/sisu/v4/db_columns.rb +++ b/lib/sisu/v4/db_columns.rb @@ -1966,8 +1966,6 @@ module SiSU_DbColumns end =begin #% misc -@make: - :skin: @links: =end def fulltext @@ -1990,73 +1988,6 @@ module SiSU_DbColumns end self end - def skin_name #check - def name - 'skin_name' - end - def create_column - "#{name} VARCHAR(#{Db[:col_filename]}) NULL," - end - def column_comment - %{COMMENT ON COLUMN metadata_and_text.#{name} - IS 'source text skin name';} - end - def tuple - t=if defined? @md.skin_name \ - and @md.skin_name=~/\S+/ - txt=@md.skin_name - txt=special_character_escape(txt) - ["#{name}, ","'#{txt}', "] - else ['',''] - end - end - self - end - def skin_fingerprint #check - def name - 'skin_fingerprint' - end - def create_column - "#{name} VARCHAR(#{Db[:col_digest]}) NULL," - end - def column_comment - %{COMMENT ON COLUMN metadata_and_text.#{name} - IS 'source text skin fingerprint';} - end - def tuple - t=if defined? @md.dgst_skin \ - and @md.dgst_skin.is_a?(Array) \ - and @md.dgst_skin[1]=~/\S+/ - txt=@md.dgst_skin[1] - txt=special_character_escape(txt) - ["#{name}, ","'#{txt}', "] - else ['',''] - end - end - self - end - def skin # you likely want a separate table for skins - def name - 'skin' - end - def create_column - "#{name} TEXT NULL," - end - def column_comment - %{COMMENT ON COLUMN metadata_and_text.#{name} - IS 'source text skin';} - end - def tuple - t=if defined? @md.skin \ - and @md.skin=~/\S+/ - txt=@md.skin - txt=special_character_escape(txt) - ["#{name}, ","'#{txt}', "] - else ['',''] - end - end - self - end def links def name 'links' |