Skip to content

Commit

Permalink
Merge pull request #135 from citusdata/fix-migration-scripts
Browse files Browse the repository at this point in the history
Stop generating migration files for each version
  • Loading branch information
gokhangulbiz authored Aug 26, 2022
2 parents bd1eba0 + cd14247 commit 9057fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ regression.diffs
results
.deps/

hll--*.*.sql
!update/hll--*.*.sql
/*.sql
19 changes: 3 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
EXTENSION = hll
EXTVERSIONS = 2.10 2.11 2.12 2.13 2.14 2.15 2.16

DATA_built = $(foreach v,$(EXTVERSIONS),$(EXTENSION)--$(v).sql) $(wildcard $(EXTENSION)--*--*.sql)
sql_files = $(wildcard update/$(EXTENSION)--*.sql)
generated_sql_files = $(patsubst update/%,%,$(sql_files))
DATA_built = $(generated_sql_files)

MODULE_big = $(EXTENSION)
OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c)) $(patsubst %.cpp,%.o,$(wildcard src/*.cpp))
Expand All @@ -34,16 +34,3 @@ src/hll.o: override CFLAGS += -std=c99

%.sql: update/%.sql
$(SQLPP) $^ > $@

$(EXTENSION)--2.11.sql: $(EXTENSION)--2.10.sql $(EXTENSION)--2.10--2.11.sql
cat $^ > $@
$(EXTENSION)--2.12.sql: $(EXTENSION)--2.11.sql $(EXTENSION)--2.11--2.12.sql
cat $^ > $@
$(EXTENSION)--2.13.sql: $(EXTENSION)--2.12.sql $(EXTENSION)--2.12--2.13.sql
cat $^ > $@
$(EXTENSION)--2.14.sql: $(EXTENSION)--2.13.sql $(EXTENSION)--2.13--2.14.sql
cat $^ > $@
$(EXTENSION)--2.15.sql: $(EXTENSION)--2.14.sql $(EXTENSION)--2.14--2.15.sql
cat $^ > $@
$(EXTENSION)--2.16.sql: $(EXTENSION)--2.15.sql $(EXTENSION)--2.15--2.16.sql
cat $^ > $@

0 comments on commit 9057fe4

Please sign in to comment.