Skip to content

Commit

Permalink
Release zk 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu authored Apr 26, 2022
1 parent 7622d9e commit d8c9031
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

All notable changes to this project will be documented in this file.

## Unreleased
<!--## Unreleased-->

## 0.10.0

### Added

Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ test:
tesh: build
@PATH=".:$(shell pwd):$(PATH)" tesh tests tests/fixtures

# Run end-to-end tests and prints difference as raw bytes.
teshb: build
@PATH=".:$(shell pwd):$(PATH)" tesh -b tests tests/fixtures

# Update end-to-end tests.
tesh-update: build
PATH=".:$(shell pwd):$(PATH)" tesh -u tests tests/fixtures
Expand All @@ -28,9 +32,9 @@ dist-macos:

# Produce a release bundle for Linux.
dist-linux:
rm -f zk && docker run --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-i386 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-i386.tar.gz" zk
rm -f zk && docker run --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-amd64 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-amd64.tar.gz" zk
rm -f zk && docker run --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-arm64 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-arm64.tar.gz" zk
rm -f zk && docker run --platform linux/amd64 --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-i386 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-i386.tar.gz" zk
rm -f zk && docker run --platform linux/amd64 --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-amd64 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-amd64.tar.gz" zk
rm -f zk && docker run --platform linux/amd64 --rm -v "${PWD}":/usr/src/zk -w /usr/src/zk mickaelmenu/zk-xcompile:linux-arm64 /bin/bash -c 'make' && tar -zcvf "zk-${VERSION}-linux-arm64.tar.gz" zk

# Clean build products.
clean:
Expand Down
6 changes: 6 additions & 0 deletions internal/adapter/sqlite/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ func (db *DB) migrate() error {
LEFT JOIN notes t ON l.target_id = t.id`,
},
},

{ // 7
SQL: []string{},
// https://github.com/mickael-menu/zk/issues/170#issuecomment-1107848441
NeedsReindexing: true,
},
}

needsReindexing := false
Expand Down
2 changes: 1 addition & 1 deletion internal/adapter/sqlite/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestMigrateFrom0(t *testing.T) {
var version int
err := tx.QueryRow("PRAGMA user_version").Scan(&version)
assert.Nil(t, err)
assert.Equal(t, version, 6)
assert.Equal(t, version, 7)

_, err = tx.Exec(`
INSERT INTO notes (path, sortable_path, title, body, word_count, checksum)
Expand Down
Binary file modified internal/adapter/sqlite/testdata/sample.db
Binary file not shown.

0 comments on commit d8c9031

Please sign in to comment.