mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-01 15:18:10 +02:00
Fix coding standards in database schemes. Use DbAdapterFactory in all unit tests instead of creating own adapters. Fix DbUserBackend and DbStore to use FETCH_OBJ, instead of FETCH_ASSOC, to handle it consistently in the whole application. Remove unnecessary table columns from the "account" scheme. refs #4577 refs #4578 refs #4596 refs #4599 refs #4627
24 lines
544 B
SQL
24 lines
544 B
SQL
create table account (
|
|
`username` varchar(255) COLLATE latin1_general_ci NOT NULL,
|
|
`salt` varchar(255) NOT NULL,
|
|
`password` varchar(255) NOT NULL,
|
|
`active` tinyint(1) DEFAULT NULL,
|
|
PRIMARY KEY (`username`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
/*
|
|
* user: icingaadmin
|
|
* password: icinga
|
|
*/
|
|
INSERT INTO account (
|
|
`username`,
|
|
`salt`,
|
|
`password`,
|
|
`active`
|
|
)
|
|
VALUES (
|
|
'icingaadmin',
|
|
'IepKgTTShC',
|
|
'52deddb5cc7a5769484fcb0fbc5981a7c62cd9f3ddbb8ff3ddb1b89ea324ad16',
|
|
1
|
|
); |