Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70daf83

Browse filesBrowse files
committed
Edit import columns names
1 parent 3528ae6 commit 70daf83
Copy full SHA for 70daf83

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎scripts/import_data_05.py

Copy file name to clipboardExpand all lines: scripts/import_data_05.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def run():
5353

5454
# - เพิ่มข้อมูลโน้ตสินค้า
5555
sql = '''
56-
INSERT INTO product_notes (notes, product_id)
56+
INSERT INTO product_notes (note, product_id)
5757
VALUES (%s, %s);
5858
'''
5959
cursor.executemany(sql, product_notes_values)

‎scripts/import_data_06.py

Copy file name to clipboardExpand all lines: scripts/import_data_06.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def run():
5555
# - เพิ่มข้อมูลแฮชแท็ก (ถ้ามีอันใหม่)
5656
if len(hashtags_values) > 0:
5757
sql = '''
58-
INSERT INTO hashtags (hashtag)
58+
INSERT INTO hashtags (title)
5959
VALUES (%s);
6060
'''
6161
cursor.executemany(sql, hashtags_values)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.