mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 12:12:27 +01:00 
			
		
		
		
	Fixed issue #1058 renamed table group to usergroup
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 1.4.4: | ||||||
|  | ------ | ||||||
|  |  | ||||||
|  | Renamed "group" table to "usergroup" | ||||||
|  | Be sure to run util/db-upgrade.sql on the mysql piler database | ||||||
|  |  | ||||||
|  |  | ||||||
| 1.4.3: | 1.4.3: | ||||||
| ------ | ------ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -389,7 +389,7 @@ foreach ($config as $k => $v) { | |||||||
|  |  | ||||||
|  |  | ||||||
| define('TABLE_USER', 'user'); | define('TABLE_USER', 'user'); | ||||||
| define('TABLE_GROUP', 'group'); | define('TABLE_GROUP', 'usergroup'); | ||||||
| define('TABLE_GROUP_USER', 'group_user'); | define('TABLE_GROUP_USER', 'group_user'); | ||||||
| define('TABLE_GROUP_EMAIL', 'group_email'); | define('TABLE_GROUP_EMAIL', 'group_email'); | ||||||
| define('TABLE_FOLDER', 'folder'); | define('TABLE_FOLDER', 'folder'); | ||||||
|   | |||||||
| @@ -6,3 +6,9 @@ alter table sph_index change column todomain todomain blob(512) default null; | |||||||
|  |  | ||||||
|  |  | ||||||
| alter table metadata change column subject `subject` blob(512) default null; | alter table metadata change column subject `subject` blob(512) default null; | ||||||
|  |  | ||||||
|  |  | ||||||
|  | SELECT Count(*) INTO @exists FROM information_schema.tables WHERE table_schema = 'piler' AND table_type = 'BASE TABLE' AND table_name = 'group'; | ||||||
|  | SET @query = If(@exists>0, 'RENAME TABLE `group` TO usergroup', 'SELECT 1 from dual'); | ||||||
|  | PREPARE stmt FROM @query; | ||||||
|  | EXECUTE stmt; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user