db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; } $this->createTable('rolerule', [ 'id' => $this->primaryKey(), 'student' => $this->integer()->notNull()->defaultValue(1), 'teacher' => $this->integer()->notNull()->defaultValue(1), 'abiturient' => $this->integer()->notNull()->defaultValue(1) ]); $this->insert('rolerule', [ 'student' => '1', 'teacher' => '1', 'abiturient' => '1' ]); } public function down() { $this->dropTable('rolerule'); } }