Skip to content

Commit

Permalink
-Updated core postgresql schema
Browse files Browse the repository at this point in the history
-Update SQL Bundling script.
  • Loading branch information
binodnp committed Jan 9, 2017
1 parent 06e09fd commit 221f553
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion builds-sql/all-paused.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
all.bat
call all.bat
pause
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,22 @@ END
$$
LANGUAGE plpgsql;

-->-->-- src/Frapid.Web/Areas/Frapid.Core/db/PostgreSQL/1.x/1.0/src/06.functions-and-logic/core.get_hstore_field.sql --<--<--
DROP FUNCTION IF EXISTS core.get_hstore_field(this public.hstore, _column_name text);

CREATE FUNCTION core.get_hstore_field(_hstore public.hstore, _column_name text)
RETURNS text
AS
$$
DECLARE _field_value text;
BEGIN
_field_value := _hstore->_column_name;
RETURN _field_value;
END
$$
LANGUAGE plpgsql;


-->-->-- src/Frapid.Web/Areas/Frapid.Core/db/PostgreSQL/1.x/1.0/src/06.functions-and-logic/core.get_my_notifications.sql --<--<--
DROP FUNCTION IF EXISTS core.get_my_notifications(_login_id bigint);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DROP FUNCTION IF EXISTS core.get_hstore_field(this public.hstore, _column_name text);

CREATE FUNCTION core.get_hstore_field(_hstore public.hstore, _column_name text)
RETURNS text
AS
$$
DECLARE _field_value text;
BEGIN
_field_value := _hstore->_column_name;
RETURN _field_value;
END
$$
LANGUAGE plpgsql;
16 changes: 16 additions & 0 deletions src/Frapid.Web/Areas/Frapid.Core/db/PostgreSQL/core-blank.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,22 @@ END
$$
LANGUAGE plpgsql;

-->-->-- src/Frapid.Web/Areas/Frapid.Core/db/PostgreSQL/1.x/1.0/src/06.functions-and-logic/core.get_hstore_field.sql --<--<--
DROP FUNCTION IF EXISTS core.get_hstore_field(this public.hstore, _column_name text);

CREATE FUNCTION core.get_hstore_field(_hstore public.hstore, _column_name text)
RETURNS text
AS
$$
DECLARE _field_value text;
BEGIN
_field_value := _hstore->_column_name;
RETURN _field_value;
END
$$
LANGUAGE plpgsql;


-->-->-- src/Frapid.Web/Areas/Frapid.Core/db/PostgreSQL/1.x/1.0/src/06.functions-and-logic/core.get_my_notifications.sql --<--<--
DROP FUNCTION IF EXISTS core.get_my_notifications(_login_id bigint);

Expand Down

0 comments on commit 221f553

Please sign in to comment.