Skip to content

Commit 4254b18

Browse files
committed
fix names table
1 parent 4a51241 commit 4254b18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
SECRET_KEY="SECRETFORMYPROJECT007"
2-
DATABASE_URL=postgresql://tirion:1234@localhost:5432/hexlet
2+
DATABASE_URL=postgresql://tirion:1234@localhost:5432/mydb

database.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CREATE TABLE IF NOT EXISTS urls (
22
id SERIAL PRIMARY KEY,
33
name VARCHAR(255) UNIQUE NOT NULL,
4-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
4+
created_at DATE DEFAULT CURRENT_DATE
55
);
66

77
CREATE TABLE IF NOT EXISTS url_checks (
@@ -11,5 +11,5 @@ CREATE TABLE IF NOT EXISTS url_checks (
1111
h1 TEXT,
1212
title TEXT,
1313
description TEXT,
14-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
14+
created_at DATE DEFAULT CURRENT_DATE
1515
);

0 commit comments

Comments
 (0)