From bad75c04a80f891b441e59f2bad5f076af93356e Mon Sep 17 00:00:00 2001 From: John Gemignani Date: Tue, 8 Mar 2022 09:29:08 -0800 Subject: [PATCH] Add ASF license to upgrade scripts Added the ASF license to the upgrade scripts. Minor formatting of contents. --- age--0.5.0--0.6.0.sql | 30 ++++++++++++++++++++++++++---- age--0.6.0--0.7.0.sql | 28 ++++++++++++++++++++++------ age--0.7.0--1.0.0.sql | 24 +++++++++++++++++++++++- 3 files changed, 71 insertions(+), 11 deletions(-) diff --git a/age--0.5.0--0.6.0.sql b/age--0.5.0--0.6.0.sql index 3f9f071f8..dbe620f13 100644 --- a/age--0.5.0--0.6.0.sql +++ b/age--0.5.0--0.6.0.sql @@ -1,12 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION age UPDATE TO '0.6.0'" to load this file. \quit -CREATE OR REPLACE FUNCTION ag_catalog.age_vle( - IN agtype, IN agtype, IN agtype, IN agtype, - IN agtype, IN agtype, IN agtype, - OUT edges agtype) +CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype, + IN agtype, IN agtype, IN agtype, + IN agtype, OUT edges agtype) RETURNS SETOF agtype LANGUAGE C IMMUTABLE STRICT AS 'MODULE_PATHNAME'; + +-- +-- End +-- diff --git a/age--0.6.0--0.7.0.sql b/age--0.6.0--0.7.0.sql index 518ae1ad6..cdbaf4406 100644 --- a/age--0.6.0--0.7.0.sql +++ b/age--0.6.0--0.7.0.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION age UPDATE TO '0.7.0'" to load this file. \quit @@ -74,9 +93,9 @@ STABLE PARALLEL SAFE AS 'MODULE_PATHNAME'; -CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype, IN agtype, - IN agtype, IN agtype, IN agtype, - OUT edges agtype) +CREATE OR REPLACE FUNCTION ag_catalog.age_vle(IN agtype, IN agtype, IN agtype, + IN agtype, IN agtype, IN agtype, + IN agtype, OUT edges agtype) RETURNS SETOF agtype LANGUAGE C STABLE @@ -101,7 +120,6 @@ CALLED ON NULL INPUT PARALLEL SAFE AS 'MODULE_PATHNAME'; - -- function to create an AGTV_PATH from a VLE_path_container CREATE FUNCTION ag_catalog.age_materialize_vle_path(agtype) RETURNS agtype @@ -128,7 +146,6 @@ RETURNS NULL ON NULL INPUT PARALLEL SAFE AS 'MODULE_PATHNAME'; - CREATE FUNCTION ag_catalog.age_match_two_vle_edges(agtype, agtype) RETURNS boolean LANGUAGE C @@ -178,4 +195,3 @@ AS 'MODULE_PATHNAME'; -- -- End -- - diff --git a/age--0.7.0--1.0.0.sql b/age--0.7.0--1.0.0.sql index cff34c0fb..59d3bff82 100644 --- a/age--0.7.0--1.0.0.sql +++ b/age--0.7.0--1.0.0.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION age UPDATE TO '1.0.0'" to load this file. \quit @@ -20,7 +39,7 @@ CREATE FUNCTION ag_catalog._cypher_merge_clause(internal) RETURNS void LANGUAGE c AS 'MODULE_PATHNAME'; - + CREATE FUNCTION ag_catalog.age_unnest(agtype, block_types boolean = false) RETURNS SETOF agtype LANGUAGE c @@ -28,3 +47,6 @@ CREATE FUNCTION ag_catalog.age_unnest(agtype, block_types boolean = false) PARALLEL SAFE AS 'MODULE_PATHNAME'; +-- +-- End +--