Skip to content

Commit

Permalink
MySQL server: PR#73
Browse files Browse the repository at this point in the history
  • Loading branch information
Berygna committed Jun 23, 2024
1 parent 0647dd4 commit d8c752a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions algofi-mysql/init/create_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
);
);
6 changes: 3 additions & 3 deletions algofi-mysql/init/insert_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d8c752a

Please sign in to comment.