Fixing SQL issues with table creation query
This commit is contained in:
parent
c47d7aa0f5
commit
9f59e60901
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
export const TABLE_reservations = `
|
||||
CREATE TABLE reservations (
|
||||
CREATE TABLE IF NOT EXISTS reservations (
|
||||
id INT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(64) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL
|
||||
password VARCHAR(255) NOT NULL,
|
||||
date_range_start DATETIME NOT NULL,
|
||||
date_range_end DATETIME NOT NULL,
|
||||
opponent_id VARCHAR(32) NOT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue