File modules/cms/update/version/DBVersion000025.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 * MySql is now supporting constraints in the same table, so we should have a constraint for the parent child relations. 10 * 11 * @author Jan Dankert 12 * 13 */ 14 class DBVersion000025 extends DbVersion 15 { 16 /** 17 * 18 */ 19 public function update() 20 { 21 $objectTable = $this->table('object'); 22 $objectTable->addConstraint('parentid', 'object'); 23 } 24 }
Download modules/cms/update/version/DBVersion000025.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.