Skip to content

Commit 4db0219

Browse files
committed
Add template for upgrading between versions of Apache AGE (apache#1506)
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
1 parent 7b7a075 commit 4db0219

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
*.o
22
*.so
3-
.gitignore
43
build.sh
5-
age--*.*.*.sql
64
.idea
75
.deps
86
.DS_Store
97
*.tokens
10-
*.interp
8+
*.interp
9+
*.dylib
10+
age--*.*.*.sql
11+
!age--*--*sql

age--1.5.0--y.y.y.sql

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
20+
-- This is a template for upgrading from the previous version of Apache AGE
21+
-- It will only work within versions of PostgreSQL, not across.
22+
-- Please adjust the below ALTER EXTENSION to reflect the correct version
23+
-- it is upgrading to.
24+
25+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
26+
\echo Use "ALTER EXTENSION age UPDATE TO '1.4.0'" to load this file. \quit
27+
28+
-- Please add all additions, deletions, and modifications to the end of this
29+
-- file. We need to keep the order of these changes.
30+

0 commit comments

Comments
 (0)