This change populates the 'role' and 'setting' tables to their initial
states via the create_db.py script which removes a step from the initial
setup. We now also search for roles instead of expecting them to be at
certain IDs.
This commit is contained in:
Ivan Filippov
2016-04-11 03:40:44 -06:00
parent df045cb2e5
commit 64531999f6
3 changed files with 26 additions and 20 deletions

View File

@@ -58,21 +58,6 @@ Create database after having proper configs
(flask)% ./createdb.py
```
Manually add some data into our `powerdnsadmin` database
```
$ mysql
MariaDB [(none)]> use powerdnsadmin;
MariaDB [powerdnsadmin]> INSERT INTO role(name, description) VALUES ('Administrator', 'Administrator');
Query OK, 1 row affected (0.00 sec)
MariaDB [powerdnsadmin]> INSERT INTO role(name, description) VALUES ('User', 'User');
Query OK, 1 row affected (0.01 sec)
MariaDB [powerdnsadmin]> INSERT INTO setting(name, value) VALUES('maintenance', 'False');
Query OK, 1 row affected (0.00 sec)
```
Run the application and enjoy!
```