diff --git a/algofi-mysql/init/create_table.sql b/algofi-mysql/init/create_table.sql index 5ab7bda..1761ef5 100755 --- a/algofi-mysql/init/create_table.sql +++ b/algofi-mysql/init/create_table.sql @@ -40,7 +40,7 @@ CREATE TABLE file ( /* algorithmproblem table 생성 */ CREATE TABLE algorithmproblem ( - algorithm_problem_id INT(11) AUTO_INCREMENT PRIMARY KEY, + algorithmproblem_id INT(11) AUTO_INCREMENT PRIMARY KEY, title VARCHAR(100) NOT NULL, level VARCHAR(10) NOT NULL, content TEXT, @@ -101,4 +101,4 @@ CREATE TABLE testcase ( test_output VARCHAR(500), algorithm_problem_id INT NOT NULL, FOREIGN KEY(algorithm_problem_id) REFERENCES algorithmproblem(algorithm_problem_id) -); \ No newline at end of file +); diff --git a/algofi-mysql/init/insert_data.sql b/algofi-mysql/init/insert_data.sql index 0893a63..3c46a27 100644 --- a/algofi-mysql/init/insert_data.sql +++ b/algofi-mysql/init/insert_data.sql @@ -116,14 +116,14 @@ INSERT INTO chatroom(chatroom_id, chatroom_name) VALUES('global','GLOBAL'); -- INSERT INTO member_chatroom(chatroom_id, member_id) VALUES (1,1); -- insert gameresult --- INSERT INTO gameresult(running_time, member_code_content, other_member_code_content, algorithm_problem_id, chatroom_id) +-- INSERT INTO gameresult(running_time, member_code_content, other_member_code_content, algorithmproblem_id, chatroom_id) -- VALUES('20:30', 'code1' , 'code2', 1 , 1); -- insert member_gameresult -- INSERT INTO member_gameresult(game_result_id, member_id) VALUES (1, 1); -- insert testcase -INSERT INTO testcase(test_input, test_output, algorithm_problem_id) +INSERT INTO testcase(test_input, test_output, algorithmproblem_id) VALUES ('computerprogramming r','3',1), ('Computercooler c','2',1), @@ -198,7 +198,7 @@ VALUES -- INSERT INTO member_chatroom(chatroom_id, member_id) VALUES (1,1); -- -- insert gameresult --- INSERT INTO gameresult(running_time, member_code_content, other_member_code_content, algorithm_problem_id, chatroom_id) +-- INSERT INTO gameresult(running_time, member_code_content, other_member_code_content, algorithmproblem_id, chatroom_id) -- VALUES('20:30', 'code1' , 'code2', 1 , 1); -- -- insert member_gameresult