changed username, add UserTable to SchemaUtils
This commit is contained in:
parent
cb03279c6d
commit
b1448884c6
|
|
@ -66,7 +66,7 @@ object DatabaseFactory {
|
|||
)
|
||||
|
||||
transaction(database) {
|
||||
SchemaUtils.create(TasksTable, ScreentimeTable)
|
||||
SchemaUtils.create(TasksTable, ScreentimeTable, UserTable)
|
||||
|
||||
// Standard aufgaben, sollte es keine mehr geben
|
||||
if (TasksTable.selectAll().empty()) {
|
||||
|
|
@ -98,6 +98,7 @@ object DatabaseFactory {
|
|||
// Create a standard user if the Users table is empty.
|
||||
if (UserTable.selectAll().empty()) {
|
||||
UserTable.insert {
|
||||
// ID automatische generierung
|
||||
it[id] = "default_user"
|
||||
it[user_username] = "default_user"
|
||||
it[passwordHash] = "1234"
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@ storage:
|
|||
host: "82.165.11.162"
|
||||
port: "5432"
|
||||
database: "kidio_db"
|
||||
username: "postgres"
|
||||
username: "kidio_admin"
|
||||
password: "learning"
|
||||
|
|
|
|||
Loading…
Reference in a new issue