Skip to content

Commit f7c865e

Browse files
committed
generate the schema.sql next to migrations
1 parent 383deb3 commit f7c865e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

litequery/migrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def migrate(config: Config):
6363

6464
def generate_schema(cur, config: Config):
6565
with open(
66-
os.path.join(os.path.dirname(config.database_path), "schema.sql"), "w"
66+
os.path.join(os.path.dirname(config.migrations_path), "schema.sql"), "w"
6767
) as f:
6868
statements = cur.execute(
6969
"select sql from sqlite_master where sql is not null"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "litequery"
7-
version = "0.7.3"
7+
version = "0.7.4"
88
authors = [{ name = "Dima Charnyshou", email = "imryche13@gmail.com" }]
99
description = "A handy way to interact with an SQLite database from Python"
1010
readme = "README.md"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)