A free and open-source book on Zend Framework for beginners


17.5. Setting Up the Database

In our Role Demo sample, we will store the role hierarchy in the "roledemo" database. We will create the following tables (see figure 17.2):

Figure 17.2 Database Schema of Role Demo Sample Figure 17.2 Database Schema of Role Demo Sample

You can find a database migration, which creates these tables, in the Role Demo sample application. To run migrations, type the following command:

./vendor/bin/doctrine-module migrations:migrate

If you are new to migrations, refer to chapter Database Migrations.


Top