Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## v2.28.0 - 2025-10-02

## Added

- New rule: require-timeout-settings (#671)

It's important to configure lock & statement timeouts to ensure safe migrations.
See [Safety Requirements](https://squawkhq.com/docs/safe_migrations#safety-requirements)

So the following will error:

```sql
alter table t add column c boolean;
```

but this is okay:

```sql
set lock_timeout = '1s';
set statement_timeout = '5s';
alter table t add column c boolean;
```

If you've already configured timeouts for your migrations, you can safely
ignore this rule.

## Fixed

- parser: pg18 `like` clause in `create foreign table` now parses (#666)

- cli: parsing rule alises i.e., prefer-timestamptz and prefer-timestamp-tz both work. (#668)

## v2.27.0 - 2025-09-23

## Added
Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "2.27.0"
version = "2.28.0"
edition = "2024"
rust-version = "1.90.0"
authors = ["Squawk Team & Contributors"]
Expand Down
2 changes: 1 addition & 1 deletion crates/squawk_github/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use serde_json::Value;
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};

pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.27.0";
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.28.0";

#[derive(Debug, Serialize)]
struct CommentBody {
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/require-timeout-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: require-timeout-settings

## problem

You must configure a `lock_timeout` to safely apply migrations. See (see ["Safety requirements"](./safe_migrations.md#safety-requirements))
You must configure a `lock_timeout` to safely apply migrations. See ["Safety requirements"](./safe_migrations.md#safety-requirements)

Additionally, a statement_timeout also helps prevent long migrations that consume too many database resources.

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
squawk = final.rustPlatform.buildRustPackage {
pname = "squawk";
version = "2.27.0";
version = "2.28.0";

cargoLock = {
lockFile = ./Cargo.lock;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "squawk-cli",
"version": "2.27.0",
"version": "2.28.0",
"description": "linter for PostgreSQL, focused on migrations",
"repository": "git@github.com:sbdchd/squawk.git",
"author": "Squawk Team & Contributors",
Expand Down
2 changes: 1 addition & 1 deletion squawk-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"icon": "icon.png",
"author": "Squawk Team & Contributors",
"license": "(Apache-2.0 OR MIT)",
"version": "2.27.0",
"version": "2.28.0",
"engines": {
"vscode": "^1.101.0"
},
Expand Down
Loading