Skip to content

Commit

Permalink
fix creating table
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbot-dot committed Jun 26, 2023
1 parent 9618655 commit 1802c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

// Create table for bugs
$sql = "CREATE TABLE IF NOT EXISTS bugs (id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, bug_name VARCHAR(100) NOT NULL, bug_description VARCHAR(16383) NOT NULL, status VARCHAR(30) NOT NULL, priority VARCHAR(30) NOT NULL, date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);";
$sql = "CREATE TABLE IF NOT EXISTS bugs (id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, bug_name VARCHAR(100) NOT NULL, bug_description TEXT(10000000) NOT NULL, status VARCHAR(30) NOT NULL, priority VARCHAR(30) NOT NULL, date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);";

if (!$conn->query($sql) === TRUE) {
echo "Error preparing the Bugkiller database.<br>" . $conn->error;
Expand Down

0 comments on commit 1802c94

Please sign in to comment.