Skip to content

Commit

Permalink
[Upd] auto increment for id field
Browse files Browse the repository at this point in the history
  • Loading branch information
Minigrim0 committed Jun 11, 2023
1 parent 925671a commit d9e53be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/2023-06-07-134015_create_tasks/up.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Your SQL goes here
CREATE TABLE tasks (
id INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
title VARCHAR(255) NOT NULL,
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
Expand Down

0 comments on commit d9e53be

Please sign in to comment.