Added first version dbskel structure files

This commit is contained in:
Paolo
2019-06-14 12:58:43 +02:00
parent 0f61a9e814
commit 962e91a108
9 changed files with 151 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
$functionsArray = array(
'get_highest_content_version' =>
'CREATE OR REPLACE FUNCTION fue.get_highest_content_version(bigint) RETURNS smallint AS $$
DECLARE i_content_id ALIAS FOR $1;
DECLARE rec RECORD;
BEGIN
SELECT INTO rec version
FROM campus.tbl_contentsprache
WHERE content_id = i_content_id
ORDER BY version desc
LIMIT 1;
RETURN rec.version;
END;
$$ LANGUAGE plpgsql;'
);