@@ -194,6 +194,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_htmlsnippets` (
194
194
` cache_type` tinyint (1 ) NOT NULL default ' 0' COMMENT ' Cache option' ,
195
195
` snippet` mediumtext,
196
196
` 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' ,
197
200
PRIMARY KEY (` id` )
198
201
) ENGINE= MyISAM COMMENT= ' Contains the site chunks.' ;
199
202
@@ -264,6 +267,8 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_plugins` (
264
267
` properties` text COMMENT ' Default Properties' ,
265
268
` disabled` tinyint NOT NULL DEFAULT ' 0' COMMENT ' Disables the plugin' ,
266
269
` 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' ,
267
272
PRIMARY KEY (` id` )
268
273
) ENGINE= MyISAM COMMENT= ' Contains the site plugins.' ;
269
274
@@ -285,6 +290,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_snippets` (
285
290
` locked` tinyint (4 ) NOT NULL default ' 0' ,
286
291
` properties` text COMMENT ' Default Properties' ,
287
292
` 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' ,
288
296
PRIMARY KEY (` id` )
289
297
) ENGINE= MyISAM COMMENT= ' Contains the site snippets.' ;
290
298
@@ -299,6 +307,8 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}site_templates` (
299
307
` content` mediumtext,
300
308
` locked` tinyint (4 ) NOT NULL default ' 0' ,
301
309
` selectable` tinyint (4 ) NOT NULL default ' 1' ,
310
+ ` createdon` integer NOT NULL DEFAULT ' 0' ,
311
+ ` editedon` integer NOT NULL DEFAULT ' 0' ,
302
312
PRIMARY KEY (` id` )
303
313
) ENGINE= MyISAM COMMENT= ' Contains the site templates.' ;
304
314
@@ -384,7 +394,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}user_attributes` (
384
394
` zip` varchar (25 ) NOT NULL default ' ' ,
385
395
` fax` varchar (100 ) NOT NULL default ' ' ,
386
396
` 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' ,
388
400
PRIMARY KEY (` id` ),
389
401
KEY ` userid` (` internalKey` )
390
402
) ENGINE= MyISAM COMMENT= ' Contains information about the backend users.' ;
@@ -538,7 +550,9 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}web_user_attributes` (
538
550
` zip` varchar (25 ) NOT NULL default ' ' ,
539
551
` fax` varchar (100 ) NOT NULL default ' ' ,
540
552
` 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' ,
542
556
PRIMARY KEY (` id` ),
543
557
KEY ` userid` (` internalKey` )
544
558
) ENGINE= MyISAM COMMENT= ' Contains information for web users.' ;
@@ -582,12 +596,27 @@ ALTER TABLE `{PREFIX}site_content`
582
596
ALTER TABLE ` {PREFIX}site_htmlsnippets`
583
597
ADD COLUMN ` editor_name` VARCHAR (50 ) NOT NULL DEFAULT ' none' AFTER ` editor_type` ;
584
598
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
+
585
608
ALTER TABLE ` {PREFIX}site_plugin_events`
586
609
ADD COLUMN ` priority` INT (10 ) NOT NULL default ' 0' COMMENT ' determines the run order of the plugin' AFTER ` evtid` ;
587
610
588
611
ALTER TABLE ` {PREFIX}site_templates`
589
612
ADD COLUMN ` selectable` TINYINT (4 ) NOT NULL DEFAULT ' 1' AFTER ` locked` ;
590
613
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
+
591
620
ALTER TABLE ` {PREFIX}site_tmplvar_templates`
592
621
ADD COLUMN ` rank` integer (11 ) NOT NULL DEFAULT ' 0' AFTER ` templateid` ;
593
622
@@ -597,6 +626,12 @@ ALTER TABLE `{PREFIX}user_attributes`
597
626
ALTER TABLE ` {PREFIX}user_attributes`
598
627
ADD COLUMN ` city` varchar (255 ) NOT NULL DEFAULT ' ' AFTER ` street` ;
599
628
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
+
600
635
ALTER TABLE ` {PREFIX}user_roles`
601
636
ADD COLUMN ` edit_chunk` INT (1 ) NOT NULL DEFAULT ' 0' AFTER ` delete_snippet` ;
602
637
@@ -651,6 +686,33 @@ ALTER TABLE `{PREFIX}web_user_attributes`
651
686
ALTER TABLE ` {PREFIX}web_user_attributes`
652
687
ADD COLUMN ` city` varchar (255 ) NOT NULL DEFAULT ' ' AFTER ` street` ;
653
688
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
+
654
716
# Set the private manager group flag
655
717
656
718
UPDATE {PREFIX}documentgroup_names AS dgn
0 commit comments