Skip to content

Commit

Permalink
fix: migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
bipo38 committed Oct 22, 2023
1 parent 86ef458 commit a8343ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions back/migrations/10102023_create_table_reports.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CREATE TABLE IF NOT EXISTS reports(
result TEXT NOT NULL,
average TEXT NOT NULL,
user_id INTEGER NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(id),
created_at DATETIME NOT NULL
created_at DATETIME NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(id)
);
2 changes: 1 addition & 1 deletion back/migrations/13102023_create_table_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CREATE TABLE IF NOT EXISTS users(
password varchar(30) NOT NULL,
email nvarchar(255) NOT NULL UNIQUE,
created_at DATETIME NOT NULL
)
);
4 changes: 2 additions & 2 deletions back/migrations/22102023_create_table_urls.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CREATE TABLE IF NOT EXISTS urls(
urls TEXT NOT NULL,
user_id INTEGER NOT NULL UNIQUE,
cron VARCHAR(10) NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(id),
created_at DATETIME NOT NULL
created_at DATETIME NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(id)
);

0 comments on commit a8343ad

Please sign in to comment.