This is an automated email from the ASF dual-hosted git repository.
mtaha pushed a commit to branch PG11
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/PG11 by this push:
new e3d302cb Add template for upgrading between versions of Apache AGE
(#1548)
e3d302cb is described below
commit e3d302cb664ef4a8178e0b5db40433dd4046b034
Author: John Gemignani <[email protected]>
AuthorDate: Mon Feb 5 06:16:07 2024 -0800
Add template for upgrading between versions of Apache AGE (#1548)
Added a template to be used when upgrading between versions of
Apache AGE.
This template is to be added to for all additions, deletions,
and modifications to the sql files that define operators, types,
and functions.
Modified .gitignore to allow these changes.
modified: .gitignore
new file: age--1.5.0--y.y.y.sql
Resolved -
Conflicts:
.gitignore
---
.gitignore | 7 ++++---
age--1.5.0--y.y.y.sql | 30 ++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 0716b033..e03dd04a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,11 @@
*.o
*.so
-.gitignore
build.sh
-age--*.*.*.sql
.idea
.deps
.DS_Store
*.tokens
-*.interp
\ No newline at end of file
+*.interp
+*.dylib
+age--*.*.*.sql
+!age--*--*sql
diff --git a/age--1.5.0--y.y.y.sql b/age--1.5.0--y.y.y.sql
new file mode 100644
index 00000000..9ec64bf8
--- /dev/null
+++ b/age--1.5.0--y.y.y.sql
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+-- This is a template for upgrading from the previous version of Apache AGE
+-- It will only work within versions of PostgreSQL, not across.
+-- Please adjust the below ALTER EXTENSION to reflect the correct version
+-- it is upgrading to.
+
+-- complain if script is sourced in psql, rather than via CREATE EXTENSION
+\echo Use "ALTER EXTENSION age UPDATE TO '1.4.0'" to load this file. \quit
+
+-- Please add all additions, deletions, and modifications to the end of this
+-- file. We need to keep the order of these changes.
+