Files
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

15 lines
496 B
Python

import sqlite3
conn = sqlite3.connect('cms.db')
c = conn.cursor()
c.execute(
"INSERT INTO nav_menus (name, link, sort_order, is_enabled, is_external, parent_id) VALUES (?, ?, ?, ?, ?, ?)",
('公司介绍', '/about/company', 1, 1, 0, 4)
)
c.execute(
"INSERT INTO nav_menus (name, link, sort_order, is_enabled, is_external, parent_id) VALUES (?, ?, ?, ?, ?, ?)",
('团队风采', '/about/team', 2, 1, 0, 4)
)
conn.commit()
conn.close()
print('test submenus inserted')