Skip to content

Commit d55f980

Browse files
committed
Fix SQLite test schema - remove DEFAULT CURRENT_TIMESTAMP
SQLite doesn't support DEFAULT CURRENT_TIMESTAMP with TEXT columns
1 parent 21af80d commit d55f980

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
id INTEGER PRIMARY KEY AUTOINCREMENT,
189189
username TEXT UNIQUE NOT NULL,
190190
email TEXT UNIQUE NOT NULL,
191-
created_at TEXT DEFAULT CURRENT_TIMESTAMP
191+
created_at TEXT
192192
);
193193
194194
CREATE TABLE posts (
@@ -197,7 +197,7 @@ jobs:
197197
title TEXT NOT NULL,
198198
content TEXT,
199199
published_at TEXT,
200-
created_at TEXT DEFAULT CURRENT_TIMESTAMP
200+
created_at TEXT
201201
);
202202
203203
CREATE INDEX idx_posts_user_id ON posts(user_id);
@@ -210,7 +210,7 @@ jobs:
210210
CREATE TABLE users (
211211
id INTEGER PRIMARY KEY AUTOINCREMENT,
212212
username TEXT UNIQUE NOT NULL,
213-
created_at TEXT DEFAULT CURRENT_TIMESTAMP
213+
created_at TEXT
214214
);
215215
EOF
216216

CLAUDE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
This is a GitHub Action project implemented in TypeScript.
22

3+
4+
35
## General Rules
46

5-
*
7+
* Write comments to describe what is not obvious in the code. Describing the "why" is a recommended practice.
8+
* Keep README.md up to date.
69

710
## Before commit
811

0 commit comments

Comments
 (0)