Skip to content

Commit 39f7f8f

Browse files
author
Pathologic
committed
resolve modxcms#126
1 parent e902a16 commit 39f7f8f

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

Diff for: install/setup.sql

+64-2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_htmlsnippets` (
194194
`cache_type` tinyint(1) NOT NULL default '0' COMMENT 'Cache option',
195195
`snippet` mediumtext,
196196
`locked` tinyint(4) NOT NULL default '0',
197+
`createdon` integer NOT NULL DEFAULT '0',
198+
`editedon` integer NOT NULL DEFAULT '0',
199+
`disabled` tinyint NOT NULL DEFAULT '0' COMMENT 'Disables the snippet',
197200
PRIMARY KEY (`id`)
198201
) ENGINE=MyISAM COMMENT='Contains the site chunks.';
199202

@@ -264,6 +267,8 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_plugins` (
264267
`properties` text COMMENT 'Default Properties',
265268
`disabled` tinyint NOT NULL DEFAULT '0' COMMENT 'Disables the plugin',
266269
`moduleguid` varchar(32) NOT NULL default '' COMMENT 'GUID of module from which to import shared parameters',
270+
`createdon` integer NOT NULL DEFAULT '0',
271+
`editedon` integer NOT NULL DEFAULT '0',
267272
PRIMARY KEY (`id`)
268273
) ENGINE=MyISAM COMMENT='Contains the site plugins.';
269274

@@ -285,6 +290,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_snippets` (
285290
`locked` tinyint(4) NOT NULL default '0',
286291
`properties` text COMMENT 'Default Properties',
287292
`moduleguid` varchar(32) NOT NULL default '' COMMENT 'GUID of module from which to import shared parameters',
293+
`createdon` integer NOT NULL DEFAULT '0',
294+
`editedon` integer NOT NULL DEFAULT '0',
295+
`disabled` tinyint NOT NULL DEFAULT '0' COMMENT 'Disables the snippet',
288296
PRIMARY KEY (`id`)
289297
) ENGINE=MyISAM COMMENT='Contains the site snippets.';
290298

@@ -299,6 +307,8 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_templates` (
299307
`content` mediumtext,
300308
`locked` tinyint(4) NOT NULL default '0',
301309
`selectable` tinyint(4) NOT NULL default '1',
310+
`createdon` integer NOT NULL DEFAULT '0',
311+
`editedon` integer NOT NULL DEFAULT '0',
302312
PRIMARY KEY (`id`)
303313
) ENGINE=MyISAM COMMENT='Contains the site templates.';
304314

@@ -384,7 +394,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}user_attributes` (
384394
`zip` varchar(25) NOT NULL default '',
385395
`fax` varchar(100) NOT NULL default '',
386396
`photo` varchar(255) NOT NULL default '' COMMENT 'link to photo',
387-
`comment` text,
397+
`comment` text,
398+
`createdon` integer NOT NULL DEFAULT '0',
399+
`editedon` integer NOT NULL DEFAULT '0',
388400
PRIMARY KEY (`id`),
389401
KEY `userid` (`internalKey`)
390402
) ENGINE=MyISAM COMMENT='Contains information about the backend users.';
@@ -538,7 +550,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}web_user_attributes` (
538550
`zip` varchar(25) NOT NULL default '',
539551
`fax` varchar(100) NOT NULL default '',
540552
`photo` varchar(255) NOT NULL default '' COMMENT 'link to photo',
541-
`comment` text,
553+
`comment` text,
554+
`createdon` integer NOT NULL DEFAULT '0',
555+
`editedon` integer NOT NULL DEFAULT '0',
542556
PRIMARY KEY (`id`),
543557
KEY `userid` (`internalKey`)
544558
) ENGINE=MyISAM COMMENT='Contains information for web users.';
@@ -582,12 +596,27 @@ ALTER TABLE `{PREFIX}site_content`
582596
ALTER TABLE `{PREFIX}site_htmlsnippets`
583597
ADD COLUMN `editor_name` VARCHAR(50) NOT NULL DEFAULT 'none' AFTER `editor_type`;
584598

599+
ALTER TABLE `{PREFIX}site_htmlsnippets`
600+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
601+
602+
ALTER TABLE `{PREFIX}site_htmlsnippets`
603+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
604+
605+
ALTER TABLE `{PREFIX}site_htmlsnippets`
606+
ADD COLUMN `disabled` tinyint NOT NULL DEFAULT '0';
607+
585608
ALTER TABLE `{PREFIX}site_plugin_events`
586609
ADD COLUMN `priority` INT(10) NOT NULL default '0' COMMENT 'determines the run order of the plugin' AFTER `evtid`;
587610

588611
ALTER TABLE `{PREFIX}site_templates`
589612
ADD COLUMN `selectable` TINYINT(4) NOT NULL DEFAULT '1' AFTER `locked`;
590613

614+
ALTER TABLE `{PREFIX}site_templates`
615+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
616+
617+
ALTER TABLE `{PREFIX}site_templates`
618+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
619+
591620
ALTER TABLE `{PREFIX}site_tmplvar_templates`
592621
ADD COLUMN `rank` integer(11) NOT NULL DEFAULT '0' AFTER `templateid`;
593622

@@ -597,6 +626,12 @@ ALTER TABLE `{PREFIX}user_attributes`
597626
ALTER TABLE `{PREFIX}user_attributes`
598627
ADD COLUMN `city` varchar(255) NOT NULL DEFAULT '' AFTER `street`;
599628

629+
ALTER TABLE `{PREFIX}user_attributes`
630+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
631+
632+
ALTER TABLE `{PREFIX}user_attributes`
633+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
634+
600635
ALTER TABLE `{PREFIX}user_roles`
601636
ADD COLUMN `edit_chunk` INT(1) NOT NULL DEFAULT '0' AFTER `delete_snippet`;
602637

@@ -651,6 +686,33 @@ ALTER TABLE `{PREFIX}web_user_attributes`
651686
ALTER TABLE `{PREFIX}web_user_attributes`
652687
ADD COLUMN `city` varchar(255) NOT NULL DEFAULT '' AFTER `street`;
653688

689+
ALTER TABLE `{PREFIX}web_user_attributes`
690+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
691+
692+
ALTER TABLE `{PREFIX}web_user_attributes`
693+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
694+
695+
ALTER TABLE `{PREFIX}site_snippets`
696+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
697+
698+
ALTER TABLE `{PREFIX}site_snippets`
699+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
700+
701+
ALTER TABLE `{PREFIX}site_snippets`
702+
ADD COLUMN `disabled` tinyint NOT NULL DEFAULT '0';
703+
704+
ALTER TABLE `{PREFIX}site_plugins`
705+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
706+
707+
ALTER TABLE `{PREFIX}site_plugins`
708+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
709+
710+
ALTER TABLE `{PREFIX}site_templates`
711+
ADD COLUMN `createdon` integer NOT NULL DEFAULT '0';
712+
713+
ALTER TABLE `{PREFIX}site_templates`
714+
ADD COLUMN `editedon` integer NOT NULL DEFAULT '0';
715+
654716
# Set the private manager group flag
655717

656718
UPDATE {PREFIX}documentgroup_names AS dgn

0 commit comments

Comments
 (0)