generated from azures04/Base-REST-API
Fix SQL syntax and add user registration test
Corrected a SQL syntax error in the databaseGlobals.js by removing an extraneous comma. Added a test script (test.js) to initialize the database and test user registration functionality.
This commit is contained in:
@@ -68,7 +68,7 @@ function initializeDatabase() {
|
||||
|
||||
FOREIGN KEY(productId)
|
||||
REFERENCES products(id)
|
||||
ON DELETE CASCADE,
|
||||
ON DELETE CASCADE
|
||||
)
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user