Use module site files system for the (un)install SQL scripts.

Changed CMS_TERM.id type to INTEGER_64 .
Removed CMS_TERM.parent_id .
Implemented CMS_TERM saving.
This commit is contained in:
2015-11-23 18:05:53 +01:00
parent 1d4ce37ebf
commit f1f3c126dd
6 changed files with 78 additions and 170 deletions

View File

@@ -16,7 +16,7 @@ create
feature {NONE} -- Initialization
make (a_id: INTEGER; a_text: READABLE_STRING_GENERAL)
make (a_id: INTEGER_64; a_text: READABLE_STRING_GENERAL)
do
id := a_id
set_text (a_text)
@@ -24,7 +24,7 @@ feature {NONE} -- Initialization
feature -- Access
id: INTEGER
id: INTEGER_64
-- Associated term id.
text: IMMUTABLE_STRING_32
@@ -33,9 +33,6 @@ feature -- Access
description: detachable IMMUTABLE_STRING_32
-- Optional description.
parent_id: INTEGER
-- Optional parent term id.
weight: INTEGER
-- Associated weight for ordering.
@@ -65,7 +62,7 @@ feature -- Comparison
feature -- Element change
set_id (a_id: INTEGER)
set_id (a_id: INTEGER_64)
do
id := a_id
end
@@ -85,15 +82,5 @@ feature -- Element change
create description.make_from_string_general (a_description)
end
set_parent (a_parent: CMS_TERM)
do
parent_id := a_parent.id
end
set_parent_id (a_parent_id: INTEGER)
do
parent_id := a_parent_id
end
end