Skip to content

Commit bad75c0

Browse files
committed
Add ASF license to upgrade scripts
Added the ASF license to the upgrade scripts. Minor formatting of contents.
1 parent ede73e4 commit bad75c0

File tree

3 files changed

+71
-11
lines changed

3 files changed

+71
-11
lines changed

age--0.5.0--0.6.0.sql

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
221
\echo Use "ALTER EXTENSION age UPDATE TO '0.6.0'" to load this file. \quit
322

4-
CREATE OR REPLACE FUNCTION ag_catalog.age_vle(
5-
IN agtype, IN agtype, IN agtype, IN agtype,
6-
IN agtype, IN agtype, IN agtype,
7-
OUT edges agtype)
23+
CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype,
24+
IN agtype, IN agtype, IN agtype,
25+
IN agtype, OUT edges agtype)
826
RETURNS SETOF agtype
927
LANGUAGE C
1028
IMMUTABLE
1129
STRICT
1230
AS 'MODULE_PATHNAME';
31+
32+
--
33+
-- End
34+
--

age--0.6.0--0.7.0.sql

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
221
\echo Use "ALTER EXTENSION age UPDATE TO '0.7.0'" to load this file. \quit
322

@@ -74,9 +93,9 @@ STABLE
7493
PARALLEL SAFE
7594
AS 'MODULE_PATHNAME';
7695

77-
CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype, IN agtype,
78-
IN agtype, IN agtype, IN agtype,
79-
OUT edges agtype)
96+
CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype,
97+
IN agtype, IN agtype, IN agtype,
98+
IN agtype, OUT edges agtype)
8099
RETURNS SETOF agtype
81100
LANGUAGE C
82101
STABLE
@@ -101,7 +120,6 @@ CALLED ON NULL INPUT
101120
PARALLEL SAFE
102121
AS 'MODULE_PATHNAME';
103122

104-
105123
-- function to create an AGTV_PATH from a VLE_path_container
106124
CREATE FUNCTION ag_catalog.age_materialize_vle_path(agtype)
107125
RETURNS agtype
@@ -128,7 +146,6 @@ RETURNS NULL ON NULL INPUT
128146
PARALLEL SAFE
129147
AS 'MODULE_PATHNAME';
130148

131-
132149
CREATE FUNCTION ag_catalog.age_match_two_vle_edges(agtype, agtype)
133150
RETURNS boolean
134151
LANGUAGE C
@@ -178,4 +195,3 @@ AS 'MODULE_PATHNAME';
178195
--
179196
-- End
180197
--
181-

age--0.7.0--1.0.0.sql

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
221
\echo Use "ALTER EXTENSION age UPDATE TO '1.0.0'" to load this file. \quit
322

@@ -20,11 +39,14 @@ CREATE FUNCTION ag_catalog._cypher_merge_clause(internal)
2039
RETURNS void
2140
LANGUAGE c
2241
AS 'MODULE_PATHNAME';
23-
42+
2443
CREATE FUNCTION ag_catalog.age_unnest(agtype, block_types boolean = false)
2544
RETURNS SETOF agtype
2645
LANGUAGE c
2746
STABLE
2847
PARALLEL SAFE
2948
AS 'MODULE_PATHNAME';
3049

50+
--
51+
-- End
52+
--

0 commit comments

Comments
 (0)