changes Nachname to sec_name
This commit is contained in:
@@ -13,7 +13,7 @@ class Session:
|
||||
|
||||
def get_active_user(self):
|
||||
sql_command = f'''
|
||||
SELECT first_name, Nachname
|
||||
SELECT first_name, sec_name
|
||||
FROM pianist
|
||||
WHERE id = {self.user}
|
||||
'''
|
||||
@@ -46,7 +46,7 @@ class Session:
|
||||
|
||||
def create_new_user(self, first_name, name):
|
||||
sql_command = f'''
|
||||
INSERT INTO pianist (first_name, Nachname)
|
||||
INSERT INTO pianist (first_name, sec_name)
|
||||
VALUES ("{first_name}", "{name}");
|
||||
'''
|
||||
self.db_agent.execute(sql_command)
|
||||
|
||||
@@ -35,7 +35,7 @@ CREATE TABLE movement (
|
||||
CREATE TABLE pianist (
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
first_name VARCHAR(255) NOT NULL,
|
||||
Nachname VARCHAR(255) NOT NULL
|
||||
sec_name VARCHAR(255) NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE Konzert (
|
||||
|
||||
Reference in New Issue
Block a user