<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Version_6.0_Database_Changes</id>
		<title>Version 6.0 Database Changes - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Version_6.0_Database_Changes"/>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;action=history"/>
		<updated>2026-04-04T10:17:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=16251&amp;oldid=prev</id>
		<title>Matt: /* Addition of Timestamp Fields */</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=16251&amp;oldid=prev"/>
				<updated>2015-11-09T13:45:14Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Addition of Timestamp Fields&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:45, 9 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l121&quot; &gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following tables have two additional new fields: '''created_at''' and '''updated_at'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following tables have two additional new fields: '''created_at''' and '''updated_at'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These are used by the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;new &lt;/del&gt;database ORM system to track when records are created and updated. They use the MySQL DateTime field type and therefore will be stored in the format YYYY-MM-DD HH:MM:SS. The fields are updated automatically when using the new model classes for these tables, and will not update automatically when you run a query directly on the table.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These are used by the database ORM system to track when records are created and updated. They use the MySQL DateTime field type and therefore will be stored in the format YYYY-MM-DD HH:MM:SS. The fields are updated automatically when using the new model classes for these tables, and will not update automatically when you run a query directly on the table.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* tbladminsecurityquestions&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* tbladminsecurityquestions&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Matt</name></author>	</entry>

	<entry>
		<id>http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=15618&amp;oldid=prev</id>
		<title>Andrew: /* Addition of Timestamp Fields */</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=15618&amp;oldid=prev"/>
				<updated>2015-07-21T14:44:04Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Addition of Timestamp Fields&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:44, 21 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l121&quot; &gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following tables have two additional new fields: '''created_at''' and '''updated_at'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following tables have two additional new fields: '''created_at''' and '''updated_at'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These are used by the new database ORM system to track when records are created and updated. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/del&gt;They use the MySQL DateTime field type and therefore will be stored in the format YYYY-MM-DD HH:MM:SS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;These are used by the new database ORM system to track when records are created and updated. They use the MySQL DateTime field type and therefore will be stored in the format YYYY-MM-DD HH:MM:SS&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. The fields are updated automatically when using the new model classes for these tables, and will not update automatically when you run a query directly on the table.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* tbladminsecurityquestions&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* tbladminsecurityquestions&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrew</name></author>	</entry>

	<entry>
		<id>http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=14027&amp;oldid=prev</id>
		<title>Matt at 13:57, 15 April 2015</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=14027&amp;oldid=prev"/>
				<updated>2015-04-15T13:57:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:57, 15 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== New Tables ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== New Tables ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;class=&amp;quot;wikitable&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Purpose&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Purpose&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== New Fields ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== New Fields ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;class=&amp;quot;wikitable&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Field Name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Field Name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot; &gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Field Changes ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Field Changes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;class=&amp;quot;wikitable&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Table Name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Field Name&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! Field Name&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Matt</name></author>	</entry>

	<entry>
		<id>http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=14026&amp;oldid=prev</id>
		<title>Matt: Created page with &quot;Version 6.0 introduces a number of database schema changes.  These consist of the addition of new tables, fields, and perhaps most importantly, the adjusting of data types on...&quot;</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_Database_Changes&amp;diff=14026&amp;oldid=prev"/>
				<updated>2015-04-15T13:57:27Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Version 6.0 introduces a number of database schema changes.  These consist of the addition of new tables, fields, and perhaps most importantly, the adjusting of data types on...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Version 6.0 introduces a number of database schema changes.  These consist of the addition of new tables, fields, and perhaps most importantly, the adjusting of data types on a number of existing fields.&lt;br /&gt;
&lt;br /&gt;
Detailed information regarding all of these changes and adjustments are provided below.&lt;br /&gt;
&lt;br /&gt;
== New Tables ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Table Name&lt;br /&gt;
! Purpose&lt;br /&gt;
|-&lt;br /&gt;
|  tblknowledgebasetags&lt;br /&gt;
| Stores associated tags for knowledgebase articles&lt;br /&gt;
|-&lt;br /&gt;
|  tblproduct_downloads&lt;br /&gt;
| Stores relationships between products and their associated downloads&lt;br /&gt;
|-&lt;br /&gt;
|  tblproduct_upgrade_products&lt;br /&gt;
| Stores relationships between products and their possible upgrade or downgrade products&lt;br /&gt;
|-&lt;br /&gt;
|  tblserversssoperms&lt;br /&gt;
| Stores admin role group permissions for Single Sign-On&lt;br /&gt;
|-&lt;br /&gt;
|  tbltld_categories&lt;br /&gt;
| Stores TLD category types&lt;br /&gt;
|-&lt;br /&gt;
|  tbltld_category_pivot&lt;br /&gt;
| Stores the relationships between TLDs and their Categories&lt;br /&gt;
|-&lt;br /&gt;
|  tbltlds&lt;br /&gt;
| Stores TLDs used in TLD category display (not to be confused with TLDs available for registration)&lt;br /&gt;
|-&lt;br /&gt;
|  tblupdatehistory&lt;br /&gt;
| Stores information relating to WHMCS installations and upgrades&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== New Fields ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Table Name&lt;br /&gt;
! Field Name&lt;br /&gt;
! Field Type&lt;br /&gt;
|-&lt;br /&gt;
| tblservers&lt;br /&gt;
| port&lt;br /&gt;
| Integer (8)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Field Changes ==&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Table Name&lt;br /&gt;
! Field Name&lt;br /&gt;
! Previous Field Type&lt;br /&gt;
! New Field Type&lt;br /&gt;
|-&lt;br /&gt;
| tblaffiliates&lt;br /&gt;
| id&lt;br /&gt;
| Integer (3)&lt;br /&gt;
| Integer (10)&lt;br /&gt;
|-&lt;br /&gt;
| tblclients&lt;br /&gt;
| pwresetexpiry&lt;br /&gt;
| Unix Timestamp&lt;br /&gt;
| Date Timestamp&lt;br /&gt;
|-&lt;br /&gt;
| tblinvoiceitems&lt;br /&gt;
| type&lt;br /&gt;
| Text&lt;br /&gt;
| Varchar (30)&lt;br /&gt;
|-&lt;br /&gt;
| tblproducts&lt;br /&gt;
| autoterminateemail&lt;br /&gt;
| Text&lt;br /&gt;
| Integer (10)&lt;br /&gt;
|-&lt;br /&gt;
| tbproducts&lt;br /&gt;
| downloads&lt;br /&gt;
| Text&lt;br /&gt;
| Removed*&lt;br /&gt;
|-&lt;br /&gt;
| tblproducts&lt;br /&gt;
| order&lt;br /&gt;
| Integer (1)&lt;br /&gt;
| Integer (10)&lt;br /&gt;
|-&lt;br /&gt;
| tblproducts&lt;br /&gt;
| qty&lt;br /&gt;
| Integer (1)&lt;br /&gt;
| Integer (10)&lt;br /&gt;
|-&lt;br /&gt;
| tblproducts&lt;br /&gt;
| upgradeemail&lt;br /&gt;
| Text&lt;br /&gt;
| Integer (10)&lt;br /&gt;
|-&lt;br /&gt;
| tblproducts&lt;br /&gt;
| upgradepackages&lt;br /&gt;
| Text&lt;br /&gt;
| Removed*&lt;br /&gt;
|-&lt;br /&gt;
| tbltickets&lt;br /&gt;
| status&lt;br /&gt;
| Text&lt;br /&gt;
| Varchar (64)&lt;br /&gt;
|-&lt;br /&gt;
| tbltickets&lt;br /&gt;
| tid&lt;br /&gt;
| Varchar (15)&lt;br /&gt;
| Varchar (128)&lt;br /&gt;
|-&lt;br /&gt;
| tblticketstatuses&lt;br /&gt;
| title&lt;br /&gt;
| Text&lt;br /&gt;
| Varchar (64)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;* The removed fields are now handled by way of new pivot tables detailed in the New Tables section of this document.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Addition of Timestamp Fields ==&lt;br /&gt;
&lt;br /&gt;
The following tables have two additional new fields: '''created_at''' and '''updated_at'''.&lt;br /&gt;
&lt;br /&gt;
These are used by the new database ORM system to track when records are created and updated.  They use the MySQL DateTime field type and therefore will be stored in the format YYYY-MM-DD HH:MM:SS&lt;br /&gt;
&lt;br /&gt;
* tbladminsecurityquestions&lt;br /&gt;
* tblaffiliates&lt;br /&gt;
* tblannouncements&lt;br /&gt;
* tblcancelrequests&lt;br /&gt;
* tblclients&lt;br /&gt;
* tblcontacts&lt;br /&gt;
* tblconfiguration&lt;br /&gt;
* tblemailtemplates&lt;br /&gt;
* tbldomains&lt;br /&gt;
* tbldomainsadditionalfields&lt;br /&gt;
* tbldownloads&lt;br /&gt;
* tbldownloadcats&lt;br /&gt;
* tblhosting&lt;br /&gt;
* tblhostingaddons&lt;br /&gt;
* tblnetworkissues&lt;br /&gt;
* tblproducts&lt;br /&gt;
* tblproductgroups&lt;br /&gt;
* tblquoteitems&lt;br /&gt;
&lt;br /&gt;
== Conversion of Boolean Fields ==&lt;br /&gt;
&lt;br /&gt;
Historically, some boolean fields have used a text field type with an empty value to denote false and any text value to mean true (usually 'on').&lt;br /&gt;
&lt;br /&gt;
Version 6.0 changes a number of these to be integer based fields, with 1 for true and 0 for false.  These include:&lt;br /&gt;
&lt;br /&gt;
* tblannouncements&lt;br /&gt;
** ''published''&lt;br /&gt;
* tblclients&lt;br /&gt;
** ''disableautocc''&lt;br /&gt;
** ''latefeeoverride''&lt;br /&gt;
** ''separateinvoices''&lt;br /&gt;
** ''taxexempt''&lt;br /&gt;
* tbldomains&lt;br /&gt;
** ''dnsmanagement''&lt;br /&gt;
** ''emailforwarding''&lt;br /&gt;
** ''idprotection''&lt;br /&gt;
** ''synced''&lt;br /&gt;
* tbldownloads&lt;br /&gt;
** ''clientsonly''&lt;br /&gt;
** ''hidden''&lt;br /&gt;
** ''productdownload''&lt;br /&gt;
* tbldownloadcats&lt;br /&gt;
** ''hidden''&lt;br /&gt;
* tblemailtemplates&lt;br /&gt;
** ''custom''&lt;br /&gt;
** ''disabled''&lt;br /&gt;
** ''plaintext''&lt;br /&gt;
* tblhosting&lt;br /&gt;
** ''overideautosuspend''&lt;br /&gt;
* tblproducts&lt;br /&gt;
** ''affiliateonetime''&lt;br /&gt;
** ''configoptionsupgrade''&lt;br /&gt;
** ''hidden''&lt;br /&gt;
** ''proratabilling''&lt;br /&gt;
** ''showdomainoptions''&lt;br /&gt;
** ''stockcontrol''&lt;br /&gt;
** ''retired''&lt;br /&gt;
** ''tax''&lt;br /&gt;
* tblproductgroups&lt;br /&gt;
** ''hidden''&lt;br /&gt;
&lt;br /&gt;
In reality, providing you are only doing loosely typed evaluations of these field values, no changes will be necessary to any custom code. It remains that any value that evaluates as true is considered on, and any empty value will mean off.&lt;br /&gt;
&lt;br /&gt;
== New Indexes ==&lt;br /&gt;
&lt;br /&gt;
The following tables have had additional indexes added for improved performance.&lt;br /&gt;
&lt;br /&gt;
* tblactivitylog&lt;br /&gt;
* tblinvoiceitems&lt;br /&gt;
* tbltickets&lt;br /&gt;
&lt;br /&gt;
== Other Changes ==&lt;br /&gt;
&lt;br /&gt;
* As of 6.0, the value used to denote a disabled domain pricing period in tblpricing has changed from 0.00 to -1.00.&lt;br /&gt;
* The &amp;quot;downloads&amp;quot; and &amp;quot;upgradepackages&amp;quot; columns in the tblproducts table have been converted to pivot tables as noted in the New Tables and Field Changes sections above.&lt;br /&gt;
* Any duplicate settings in tblconfiguration will be removed upon upgrading to 6.0, with only the last (valid) setting in the table being retained.&lt;/div&gt;</summary>
		<author><name>Matt</name></author>	</entry>

	</feed>