Skip to content

Commit

Permalink
menus 테이블: menu_name -> name 으로 열 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
one0955 committed May 20, 2024
1 parent e37121b commit d9bc9ff
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_STORE
__pycache__
Binary file removed mysql_batch/__pycache__/create_table.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed mysql_batch/__pycache__/insert.cpython-312.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion mysql_batch/create_table_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
CREATE TABLE IF NOT EXISTS `menus` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`restaurant_id` BIGINT NOT NULL,
`menu_name` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`price` VARCHAR(32) NOT NULL,
`description` VARCHAR(512) NOT NULL,
`is_representative` VARCHAR(32) NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion mysql_batch/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def insert_into_menus(cursor, menu):
insert_query = """
INSERT IGNORE INTO menus (
restaurant_id,
menu_name,
name,
price,
description,
is_representative,
Expand Down

0 comments on commit d9bc9ff

Please sign in to comment.