ユーザー登録時に文字数超過のエラーが出ることへの暫定的な対応
This commit is contained in:
parent
8019674b13
commit
8a88a1a31f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class DL():
|
||||||
find_club_member_table = cursor.fetchall()
|
find_club_member_table = cursor.fetchall()
|
||||||
print(find_club_member_table)
|
print(find_club_member_table)
|
||||||
if find_club_member_table[0][0] == False:
|
if find_club_member_table[0][0] == False:
|
||||||
cursor.execute("CREATE TABLE club_member (id SERIAL NOT NULL, name VARCHAR(30) NOT NULL, discord_username VARCHAR(32) NOT NULL, discord_userid VARCHAR(18) NOT NULL, PRIMARY KEY (id))")
|
cursor.execute("CREATE TABLE club_member (id SERIAL NOT NULL, name VARCHAR(50) NOT NULL, discord_username VARCHAR(50) NOT NULL, discord_userid VARCHAR(18) NOT NULL, PRIMARY KEY (id))")
|
||||||
self.db.commit()
|
self.db.commit()
|
||||||
|
|
||||||
cursor.execute("SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'pc_list')")
|
cursor.execute("SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'pc_list')")
|
||||||
|
|
Loading…
Reference in a new issue