File modules/cms/update/version/DBVersion000024.class.php
Last commit: Wed Jul 7 22:29:06 2021 +0200 Jan Dankert Refactoring: Split values and content, new table "content".
1 <?php 2 3 namespace cms\update\version; 4 5 use database\DbVersion; 6 use database\Column; 7 8 /** 9 * Groups my contain subgroups. 10 * 11 * @author Jan Dankert 12 * 13 */ 14 class DBVersion000024 extends DbVersion 15 { 16 /** 17 * 18 */ 19 public function update() 20 { 21 $groupTable = $this->table('group'); 22 $groupTable->column('parentid')->type(Column::TYPE_INT )->nullable()->add(); 23 $groupTable->addIndex('parentid'); 24 $groupTable->addConstraint('parentid', 'group'); 25 } 26 }
Downloadmodules/cms/update/version/DBVersion000024.class.php
History Wed, 7 Jul 2021 22:29:06 +0200 Jan Dankert Refactoring: Split values and content, new table "content". Mon, 4 Jan 2021 23:14:09 +0100 Jan Dankert New: Groups may contain subgroups. Users within a group inherit the permissions of all parent groups.