<?xml version="1.0" encoding="utf-8"?>	
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>
    
    <title>Tracks Community Wiki</title>
    <link>http://www.getontracks.org/wiki/</link>
    <description>Tracks Community Wiki</description>
    <dc:language>en</dc:language>
    <dc:creator>butshesagirl@rousette.org.uk</dc:creator>
    <dc:rights>Copyright 2006</dc:rights>
    <dc:date>2010-03-20T16:21:53+00:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.pmachine.com/" />
    

    <item>
      <title>Linux Debian</title>
      <link>http://www.getontracks.org/wiki/Linux&#45;Debian/</link>
      <guid>http://www.getontracks.org/wiki/Linux&#45;Debian/</guid>
      <description><![CDATA[	<p><a href="http://www.getontracks.org/wiki/Category:Installation/" title="Category:Installation">Category:Installation</a></p>

	<h2>General Debian GNU/Linux installation</h2>

	<p>A detailed howto written by c00i90wn can be found at c00i90wn&#8217;s homepage <a href="http://www.cooldown.com.ar/2006/12/16/install-tracks-on-ubuntu-or-debian/">here</a> there explains how to install it on Debian or Ubuntu.</p>

	<p>(These instructions were written by Thomas Themel)</p>

	<p>Installing tracks on Debian is a bit more complicated than it should be, mainly because Debian splits ruby into a multitude of packages, while authors of ruby packages seemingly tend to assume that they are all installed.</p>

	<p>Installing Tracks requires Ruby on Rails, which in turn requires RubyGems.</p>

	<p>To install RubyGems, you need to install the following Debian packages:</p>

	<ul>
	<li>ruby1.8</li>
		<li>libzlib-ruby</li>
	</ul>
	<ul>
	<li>libyaml-ruby

	<p>When these and their dependencies are set up, it should be possible to install !RubyGems:</p>

<code><br />
sokrates:/home/themel/ruby/rubygems-0.8.4# ruby setup.rb all<br />
---&gt; bin<br />
[...]
  Successfully built RubyGem
  Name: sources
  Version: 0.0.1
  File: sources-0.0.1.gem<br />
sokrates:/home/themel/ruby/rubygems-0.8.4#<br />
</code>

	<p>For installation of the rails GEM, more Debian packages are required:</p>

		<li>libdrb-ruby</li>
		<li>liberb-ruby</li>
	</ul>
	<ul>
	<li>rdoc

	<p>RubyGems can then install Ruby on Rails:</p>

<code><br />
sokrates:/home/themel/ruby/rubygems-0.8.4# gem install rails<br />
Attempting local installation of 'rails'<br />
Local gem file not found: rails*.gem<br />
Attempting remote installation of 'rails'<br />
Updating Gem source index for: http://gems.rubyforge.org<br />
Install required dependency rake? [Yn]  y <br />
Install required dependency activerecord? [Yn]  <br />
Install required dependency actionpack? [Yn]  <br />
Install required dependency actionmailer? [Yn]  <br />
Successfully installed rails, version 0.9.5<br />
Installing RDoc documentation for rails-0.9.5...<br />
WARNING: Generating RDoc on .gem that may not have RDoc.

	<p>lib/rails_generator.rb:34:46: Skipping require of dynamic string: "#&amp;#123;path&amp;#125;/#&amp;#123;name&amp;#125;_generator.rb"<br />
Installing RDoc documentation for rake-0.4.15...<br />
Installing RDoc documentation for activerecord-1.6.0...<br />
Installing RDoc documentation for actionpack-1.4.0...</p>

	<p>lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic string: "#&amp;#123;model_id.id2name&amp;#125;"<br />
Installing RDoc documentation for actionmailer-0.6.1...<br />
sokrates:/home/themel/ruby/rubygems-0.8.4#<br />
</code></p>

	<p>To run tracks, we need another Debian package: </p>

		<li>libwebrick-ruby

	<p>The final issue that I ran into is that the ruby MySQL client seems to expect the MySQL server socket in its default location in /tmp when the specified database host is localhost.  Debian doesn&#8217;t place the server socket in /tmp/mysql.socket, but rather in /var/run/mysqld/mysqld.socket. This causes the error</p>

<code><br />
No such file or directory - /tmp/mysql.sock<br />
</code>

	<p>when starting tracks. To fix this, add a socket line to the appropriate environments in your config/database.yml:</p>

<code><br />
development:
  adapter: mysql
  database: tracks
  host: localhost
  username: root
  password:
  socket: /var/run/mysqld/mysqld.sock<br />
</code>

	<p>Happy GTDing!</p>

	<p>Thomas Themel</p>

	<p>Radagast has also had some success with Debian and Tracks, and posts detailed instructions <a href="http://rhosgobel.blogspot.com/2005/09/installing-tracks-on-debian.html">here</a>.</p>

	<h2>Ubuntu Dapper Drake</h2>

	<p>There are some very clear and straightforward instructions for <a href="http://www.rubyrailways.com/getting-ruby-on-rails-up-and-running-on-ubuntu-dapper/">Ubuntu Dapper Drake here</a>.</p>

	<h2>Ubuntu 6.10 (Edgy Eft) Installation</h2>

	<p>Here are some <a href="https://help.ubuntu.com/community/RubyOnRails">clear instructions</a> for getting rails and Edgy to play well together.</p>

	<h2>Debian Subdirectory Installation</h2>

	<p>Install notes for Debian Lenny, including specific details and patches required for installing in a subdirectory <a href="http://bitcube.co.uk/content/getting-things-done-tracks">here</a></p>


 ]]></description>
      <dc:subject>Linux Debian</dc:subject>
      <dc:date>2010-03-20T16:21:53+00:00</dc:date>
    </item>

    <item>
      <title>OpenSolaris</title>
      <link>http://www.getontracks.org/wiki/OpenSolaris/</link>
      <guid>http://www.getontracks.org/wiki/OpenSolaris/</guid>
      <description><![CDATA[	<p><a href="http://www.getontracks.org/wiki/Category:Installation/" title="Category:Installation">Category:Installation</a><br />
Submitted by carylt</p>

	<p>Installing Tracks 1.7 on <a href="http://hub.opensolaris.org/bin/view/Main/downloads">OpenSolaris 2009.06</a> using the MySQL 5.0 database in 10 steps</p>

	<p>All the commands described in this document are to be executed by a user with the Primary Administrator role (The user created when installing OpenSolaris is granted this role automatically).</p>


	<h2>Step 1 &#8211; Download the Tracks 1.7 zip file, unzip it in your preferred location and change to that directory.</h2>

	<p>This document is written assuming the Tracks software is installed in /opt<br />
<code><br />
$ cd /opt<br />
$ pfexec unzip tracks-current.zip<br />
$ cd tracks-1.7<br />
</code></p>

	<h2>Step 2 &#8211; Configure the OpenSolaris publisher repositories needed to install the MySQL Ruby Gem package </h2>

	<p>OpenSolaris 2009.06 is delivered with Ruby 1.8.7, which contains Ruby and RubyGems, but rather than recompiling ourselves the MySQL Ruby Gem it&#8217;s easier to simply install it directly from the OpenSolaris Contrib repository.</p>

	<p>So we will need to add this repository to the list of available publishers of packages:</p>

<code><br />
$ pfexec pkg set-publisher -O http://pkg.opensolaris.org/contrib Contrib<br />
</code>

	<p>Now we can simply install the ruby-mysql package</p>

	<h2>Step 3 &#8211; Install ruby-mysql from the OpenSolaris contrib repository</h2>

<code><br />
$ pfexec pkg install ruby-mysql<br />
</code>

	<h2>Step 4 &#8211; Install, Start and Configure MySQL 5.0</h2>

	<p>Install MySQL 5.0:<br />
<code><br />
$ pfexec pkg install SUNWmysql5<br />
</code></p>

	<p>Start MySQL 5.0:<br />
<code><br />
$ pfexec svcadm enable mysql<br />
</code></p>

	<p>Creating a new user account:<br />
<code><br />
$ /usr/mysql/5.0/bin/mysql -u root<br />
mysql&gt; CREATE DATABASE tracks17;<br />
mysql&gt; GRANT ALL ON tracks17.* TO 'mysql'@'localhost' IDENTIFIED BY 'mysql';<br />
</code></p>

	<h2>Step 5 &#8211; Workaround a known Ruby bug (present amongst others in OpenSolaris and BSD)</h2>

	<p>Edit the file /opt/tracks-1.7/vendor/rails/activesupport/lib/active_support/inflector.rb<br />
Go to line 275, and add a &#8220;rescue&#8221; statement so that part of the code reads:</p>

<code><br />
def transliterate(string)<br />
Iconv.iconv('ascii//ignore//translit', 'utf-8', string).to_s<br />
rescue<br />
end<br />
</code>

	<h2>Step 6 &#8211; Install Rake</h2>

<code><br />
$ pfexec gem install rake<br />
</code>

	<h2>Step 7 &#8211; Configure the Tracks database section</h2>

	<p>Open file /opt/tracks-1.7/config/database.yml and edit the production section to look like:<br />
<code><br />
production:<br />
adapter: mysql<br />
host: localhost<br />
username: mysql<br />
password: mysql<br />
database: tracks17<br />
</code></p>

	<h2>Step 8 &#8211; Configure the Tracks site section</h2>

	<p>Open file /opt/tracks-1.7/config/site.yml</p>

	<p>Change the line saying salt: &#8220;change-me&#8221; to a string of your choice.<br />
Change the line saying time_zone: &#8220;UTC&#8221; to your time zone. </p>

	<p>You can use the command<br />
<code><br />
$ /var/ruby/1.8/gem_home/bin/rake time:zones:local <br />
</code></p>

	<p>to see all available timezones on your machine and test that your Ruby installation is working as intended.<br />
If it doesn&#8217;t, chances are you missed Step 5.</p>

	<h2>Step 9 &#8211; Populate your database with the Tracks 1.7 schema</h2>

<code><br />
$ pfexec rake db:migrate RAILS_ENV=production<br />
</code>

	<h2>Step 10 &#8211; Start the application</h2>

<code><br />
$ pfexec script/server -e production<br />
</code>

	<p>Now point your browser to http://127.0.0.1:3000 check that the application is working and create an admin user for Tracks.</p>

	<h2>Note: To ensure the Tracks application starts automatically at boot time, save the following startup script as /etc/rc3.d/S99tracks</h2>

	<p><a href="http://www.getontracks.org/wiki/File:S99tracks.txt/" title="File:S99tracks.txt" class="noArticle">File:S99tracks.txt</a></p>


 ]]></description>
      <dc:subject>OpenSolaris</dc:subject>
      <dc:date>2010-02-12T15:36:38+00:00</dc:date>
    </item>

    <item>
      <title>S99tracks</title>
      <link>http://www.getontracks.org/wiki/S99tracks/</link>
      <guid>http://www.getontracks.org/wiki/S99tracks/</guid>
      <description><![CDATA[]]></description>
      <dc:subject>S99tracks</dc:subject>
      <dc:date>2010-02-12T15:35:23+00:00</dc:date>
    </item>

    <item>
      <title>Installation Index</title>
      <link>http://www.getontracks.org/wiki/Installation&#45;Index/</link>
      <guid>http://www.getontracks.org/wiki/Installation&#45;Index/</guid>
      <description><![CDATA[	<p><a href="http://www.getontracks.org/wiki/Category:Installation/" title="Category:Installation">Category:Installation</a></p>

	<h1>General requirements</h1>

	<p>The most up-to-date instructions can be found in the manual on the <a href="http://www.getontracks.org">homepage</a>&#8221; You can run Tracks on your own (local) computer (MacOS X, Windows and Linux are all supported), or on your web host&#8217;s server, in which case you will have access to Tracks from any internet connected computer. <br />
Specific instructions for various platforms:</p>

	<ul>
	<li><a href="http://www.getontracks.org/wiki/MacOS-X/" title="MacOS-X">MacOS X</a></li>
		<li><a href="http://www.getontracks.org/wiki/Windows/" title="Windows">Windows</a></li>
		<li><a href="http://www.getontracks.org/wiki/Linux-Debian/" title="Linux-Debian">Linux Debian</a></li>
		<li><a href="http://www.getontracks.org/wiki/LinuxGeneral/" title="LinuxGeneral">LinuxGeneral</a></li>
		<li><a href="http://www.getontracks.org/wiki/LinuxUbuntu/" title="LinuxUbuntu">LinuxUbuntu</a></li>
		<li><a href="http://www.getontracks.org/wiki/Linux-opensuse/" title="Linux-opensuse">Linux opensuse</a></li>
		<li><a href="http://www.getontracks.org/wiki/FreeBSD/" title="FreeBSD">FreeBSD</a></li>
		<li><a href="http://www.getontracks.org/wiki/Fedora/" title="Fedora">Fedora</a></li>
		<li><a href="http://www.getontracks.org/wiki/Web-host/" title="Web-host">Web host</a></li>
		<li><a href="http://www.getontracks.org/wiki/CentOS-5/" title="CentOS-5">CentOS 5</a></li>
		<li><a href="http://www.getontracks.org/wiki/Scientific-Linux-RH5-clone/" title="Scientific-Linux-RH5-clone">Scientific Linux RH5 clone</a></li>
		<li><a href="http://www.getontracks.org/wiki/Apache/" title="Apache">Apache</a></li>
	</ul>
	<ul>
	<li><a href="http://www.getontracks.org/wiki/OpenSolaris/" title="OpenSolaris">OpenSolaris</a></li>
	</ul>


 ]]></description>
      <dc:subject>Installation Index</dc:subject>
      <dc:date>2010-02-12T14:50:59+00:00</dc:date>
    </item>

    <item>
      <title>Recommended Web Hosts</title>
      <link>http://www.getontracks.org/wiki/Recommended&#45;Web&#45;Hosts/</link>
      <guid>http://www.getontracks.org/wiki/Recommended&#45;Web&#45;Hosts/</guid>
      <description><![CDATA[	<p>Here are some web hosts recommended by users which allow you to install Tracks and therefore use it from any internet-connected computer:</p>

	<ul>
	<li><a href="http://textdrive.com">TextDrive</a>: Where bsag hosts the Tracks project, her blog and her own private version of Tracks. They have all you need to install Rails applications, and great technical support. <b><i>(note: textdrive has been absorbed by Joyent &#8211; don&#8217;t know if that changes anything or not&#8230;)</i></b></li>

		<li><a href="http://www.slicehost.com">Slicehost</a>: Built for developers. We offer 256/512/1024 Xen VPS Slices with choice of OS (Ubuntu, CentOS, Gentoo). The 256 is perfect for hosting Tracks and we&#8217;re big fans. Full root access &#8211; run Apache, Lighttpd, Mongrel, Webrick &#8211; your choice. Please contact us or pop into the chatroom with any questions.</li>

		<li><a href="http://site5.com">Site5</a>: Installed and works without any problem. It allows users to optimize their sites many <a href="http://www.seop.com/">search engine optimization</a> experts will agree.</li>
	</ul>


 ]]></description>
      <dc:subject>Recommended Web Hosts</dc:subject>
      <dc:date>2010-02-09T04:00:36+00:00</dc:date>
    </item>

    <item>
      <title>FreeBSD</title>
      <link>http://www.getontracks.org/wiki/FreeBSD/</link>
      <guid>http://www.getontracks.org/wiki/FreeBSD/</guid>
      <description><![CDATA[	<p><a href="http://www.getontracks.org/wiki/Category:Installation/" title="Category:Installation">Category:Installation</a></p>

	<h2>Tracks 1.7 installation on FreeBSD 8.0 with sqlite3 as database</h2>

	<h3>Prerequisite: install this packages from ports:</h3>

<code><br />
sqlite3<br />
ruby+oniguruma<br />
ruby18-aspectr<br />
ruby18-bdb<br />
ruby18-dbd_sqlite3<br />
ruby18-dbi<br />
ruby18-fcgi<br />
ruby18-gems<br />
ruby18-iconv<br />
ruby18-mysql<br />
rubygem-actionmailer<br />
rubygem-actionpack<br />
rubygem-activerecord<br />
rubygem-activeresource<br />
rubygem-activesupport<br />
rubygem-addressable<br />
rubygem-data_objects<br />
rubygem-deprecated<br />
rubygem-do_mysql<br />
rubygem-do_sqlite3<br />
rubygem-extlib<br />
rubygem-rack<br />
rubygem-rails<br />
rubygem-rake<br />
rubygem-redcloth<br />
rubygem-sqlite3<br />
</code>

	<p>May be some of them aren&#8217;t needed (like the mysql-packages).</p>

	<h3>Set up Tracks</h3>

	<p>Download the Tracks zip file and unpack it to a suitable location, e. g. /usr/local</p>

	<p>cd into the Tracks home directory and set up the sqlite database (only, if you don&#8217;t already have a tracks database!)<br />
<code><br />
rake db:migrate RAILS_ENV=production<br />
</code></p>

	<h3>Test yor Tracks installation</h3>

	<p>After completing successfully, you can start Tracks from within the tracks home directory<br />
<code><br />
script/server -e production<br />
</code></p>

	<p>Now you should be able to access your Tracks installation by your browser (http://myserverip:3000)</p>


 ]]></description>
      <dc:subject>FreeBSD</dc:subject>
      <dc:date>2009-12-24T10:34:19+00:00</dc:date>
    </item>

    <item>
      <title>Keyboard Shortcuts</title>
      <link>http://www.getontracks.org/wiki/Keyboard&#45;Shortcuts/</link>
      <guid>http://www.getontracks.org/wiki/Keyboard&#45;Shortcuts/</guid>
      <description><![CDATA[	<p>For some browsers/OSes, Alt will suffice in place of Alt+Shift.</p>

	<p>Alt+Shift+t &#8211; Home<br />
Alt+Shift+p &#8211; Projects<br />
Alt+Shift+k &#8211; Tickler<br />
Alt+Shift+c &#8211; Contexts</p>

	<p>Alt+Shift+d &#8211; Completed Tasks<br />
Alt+Shift+r &#8211; Manage recurring actions<br />
Alt+Shift+l &#8211; Calendar of due actions<br />
Alt+Shift+s &#8211; Show/Hide Notes<br />
Alt+Shift+o &#8211; Show all notes</p>

	<p>Alt+Shift+u &#8211; Preferences<br />
Alt+Shift+i &#8211; Import and export data</p>

	<p>Alt+Shift+n &#8211; Show/Hide Form (Add Action/Project/Context)</p>


 ]]></description>
      <dc:subject>Keyboard Shortcuts</dc:subject>
      <dc:date>2009-11-23T14:39:15+00:00</dc:date>
    </item>

    <item>
      <title>Database schema</title>
      <link>http://www.getontracks.org/wiki/Database&#45;schema/</link>
      <guid>http://www.getontracks.org/wiki/Database&#45;schema/</guid>
      <description><![CDATA[	<p>for people who do not have shell access or and are not able to use rake db:migrate the is the following sql to create databases</p>

	<p>Please not that this the the schema for 1.8devel, but it should work fine for 1.7</p>

	<p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">--&nbsp;</span><span style="color: #0000BB">MySQL&nbsp;dump&nbsp;10.11<br /></span><span style="color: #007700">--<br />--&nbsp;</span><span style="color: #0000BB">Host</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">localhost&nbsp;&nbsp;&nbsp;&nbsp;Database</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">tracks_prod<br /></span><span style="color: #007700">--&nbsp;------------------------------------------------------<br />--&nbsp;</span><span style="color: #0000BB">Server&nbsp;version&nbsp;&nbsp;&nbsp;&nbsp;5.0.84<br /><br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;NAMES&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40103&nbsp;SET&nbsp;@OLD_TIME_ZONE=@@TIME_ZONE&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40103&nbsp;SET&nbsp;TIME_ZONE='+00:00'&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40014&nbsp;SET&nbsp;@OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS,&nbsp;UNIQUE_CHECKS=0&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40014&nbsp;SET&nbsp;@OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,&nbsp;FOREIGN_KEY_CHECKS=0&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@OLD_SQL_MODE=@@SQL_MODE,&nbsp;SQL_MODE='NO_AUTO_VALUE_ON_ZERO'&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40111&nbsp;SET&nbsp;@OLD_SQL_NOTES=@@SQL_NOTES,&nbsp;SQL_NOTES=0&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">contexts</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">contexts</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">contexts</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">name</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">position</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">hide</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_contexts_on_user_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_contexts_on_user_id_and_name</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">name</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">64&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">notes</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">notes</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">notes</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">body</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_notes_on_project_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_notes_on_user_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">52&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_associations</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_associations</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_associations</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">issued</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">lifetime</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">handle</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">assoc_type</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">server_url</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">blob</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">secret</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">blob</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_nonces</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_nonces</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">open_id_authentication_nonces</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">timestamp</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">server_url</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">salt</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">preferences</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">preferences</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">preferences</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">date_format</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">40</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'%d/%m/%Y'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">week_starts</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_number_completed</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'5'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">staleness_starts</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'7'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_completed_projects_in_sidebar</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_hidden_contexts_in_sidebar</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">due_style</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">admin_email</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'butshesagirl@rousette.org.uk'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">refresh</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">verbose_action_descriptors</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_hidden_projects_in_sidebar</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">time_zone</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'London'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_project_on_todo_done</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">title_date_format</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'%A,&nbsp;%d&nbsp;%B&nbsp;%Y'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">mobile_todos_per_page</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'6'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">sms_email</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">sms_context_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_preferences_on_user_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">4&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">projects</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">projects</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">projects</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">name</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">position</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">description</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">state</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'active'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">default_context_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">completed_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">default_tags</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_projects_on_user_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_projects_on_user_id_and_name</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">name</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">190&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">recurring_todos</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">recurring_todos</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">recurring_todos</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">context_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">description</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">notes</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">state</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'active'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">start_from</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">ends_on</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">end_date</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">number_of_occurences</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">occurences_count</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">target</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_from_delta</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">recurring_period</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">recurrence_selector</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">every_other1</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">every_other2</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">every_other3</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">every_day</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">only_work_days</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">every_count</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">weekday</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">completed_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_always</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_recurring_todos_on_user_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_recurring_todos_on_state</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">state</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">59&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">schema_migrations</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">schema_migrations</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">schema_migrations</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">version</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">UNIQUE&nbsp;KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">unique_schema_migrations</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">version</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">sessions</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">sessions</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">sessions</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">session_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">data</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">sessions_session_id_index</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">session_id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">46388&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">taggings</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">taggings</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">taggings</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">taggable_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">tag_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">taggable_type</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_taggings_on_tag_id_and_taggable_id_and_taggable_type</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">tag_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">taggable_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">taggable_type</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_taggings_on_taggable_id_and_taggable_type</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">taggable_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">taggable_type</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_taggings_on_tag_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">tag_id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">12747&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">tags</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">tags</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">tags</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">name</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_tags_on_name</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">name</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">1026&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">todos</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">todos</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">todos</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">context_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">description</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">notes</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">created_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">due</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">completed_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">show_from</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">state</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'immediate'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">recurring_todo_id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">updated_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_todos_on_user_id_and_state</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">state</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_todos_on_user_id_and_project_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_todos_on_project_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">project_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_todos_on_context_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">context_id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_todos_on_user_id_and_context_id</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">user_id</span><span style="color: #007700">`,`</span><span style="color: #0000BB">context_id</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">4939&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /><br />--<br />--&nbsp;</span><span style="color: #0000BB">Table&nbsp;structure&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">table&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">users</span><span style="color: #007700">`<br />--<br /><br /></span><span style="color: #0000BB">DROP&nbsp;TABLE&nbsp;</span><span style="color: #007700">IF&nbsp;</span><span style="color: #0000BB">EXISTS&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">users</span><span style="color: #007700">`;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;@saved_cs_client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;@@character_set_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;utf8&nbsp;*/</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">CREATE&nbsp;TABLE&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">users</span><span style="color: #007700">`&nbsp;(<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">id</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;auto_increment</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">login</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">80</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">crypted_password</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">40</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">token</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">is_admin</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">tinyint</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">first_name</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">last_name</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">auth_type</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">NOT&nbsp;NULL&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #DD0000">'database'</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">open_id_url</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">remember_token</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">varchar</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">)&nbsp;default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;`</span><span style="color: #0000BB">remember_token_expires_at</span><span style="color: #007700">`&nbsp;</span><span style="color: #0000BB">datetime&nbsp;</span><span style="color: #007700">default&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br />&nbsp;&nbsp;</span><span style="color: #0000BB">PRIMARY&nbsp;KEY&nbsp;&nbsp;</span><span style="color: #007700">(`</span><span style="color: #0000BB">id</span><span style="color: #007700">`),<br />&nbsp;&nbsp;</span><span style="color: #0000BB">KEY&nbsp;</span><span style="color: #007700">`</span><span style="color: #0000BB">index_users_on_login</span><span style="color: #007700">`&nbsp;(`</span><span style="color: #0000BB">login</span><span style="color: #007700">`)<br />)&nbsp;</span><span style="color: #0000BB">ENGINE</span><span style="color: #007700">=</span><span style="color: #0000BB">InnoDB&nbsp;AUTO_INCREMENT</span><span style="color: #007700">=</span><span style="color: #0000BB">4&nbsp;</span><span style="color: #007700">DEFAULT&nbsp;</span><span style="color: #0000BB">CHARSET</span><span style="color: #007700">=</span><span style="color: #0000BB">latin1</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;character_set_client&nbsp;=&nbsp;@saved_cs_client&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40103&nbsp;SET&nbsp;TIME_ZONE=@OLD_TIME_ZONE&nbsp;*/</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;SQL_MODE=@OLD_SQL_MODE&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40014&nbsp;SET&nbsp;FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40014&nbsp;SET&nbsp;UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40101&nbsp;SET&nbsp;COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION&nbsp;*/</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">/*!40111&nbsp;SET&nbsp;SQL_NOTES=@OLD_SQL_NOTES&nbsp;*/</span><span style="color: #007700">;<br /><br />--&nbsp;</span><span style="color: #0000BB">Dump&nbsp;completed&nbsp;on&nbsp;2009</span><span style="color: #007700">-</span><span style="color: #0000BB">10</span><span style="color: #007700">-</span><span style="color: #0000BB">09&nbsp;16</span><span style="color: #007700">:</span><span style="color: #0000BB">28</span><span style="color: #007700">:</span><span style="color: #0000BB">05&nbsp;</span>
</span>
</code></div></p>


 ]]></description>
      <dc:subject>Database schema</dc:subject>
      <dc:date>2009-10-11T10:47:49+00:00</dc:date>
    </item>

    <item>
      <title>Web host</title>
      <link>http://www.getontracks.org/wiki/Web&#45;host/</link>
      <guid>http://www.getontracks.org/wiki/Web&#45;host/</guid>
      <description><![CDATA[	<p>Installing Tracks on a webhost&#8217;s server</p>

	<ul>
	<li><a href="http://www.getontracks.org/wiki/Dreamhost/" title="Dreamhost">Dreamhost</a></li>
		<li><a href="http://www.getontracks.org/wiki/GoDaddy/" title="GoDaddy">GoDaddy</a></li>
		<li><a href="http://www.getontracks.org/wiki/Media-Temple-gs/" title="Media-Temple-gs">Media Temple gs</a></li>
		<li><a href="http://www.getontracks.org/wiki/Small-Orange/" title="Small-Orange" class="noArticle">Small Orange</a></li>
		<li><a href="http://www.getontracks.org/wiki/Hostgator/" title="Hostgator">Hostgator</a></li>
		<li><a href="http://www.getontracks.org/wiki/Heroku/" title="Heroku">Heroku</a></li>
		<li><a href="http://www.getontracks.org/wiki/Bluehost/" title="Bluehost">Bluehost</a></li>
	</ul>
	<ul>
	<li><a href="http://www.getontracks.org/wiki/Database-schema/" title="Database-schema">Database schema</a></li>
	</ul>


 ]]></description>
      <dc:subject>Web host</dc:subject>
      <dc:date>2009-10-11T10:44:38+00:00</dc:date>
    </item>

    <item>
      <title>ActionDependencies</title>
      <link>http://www.getontracks.org/wiki/ActionDependencies/</link>
      <guid>http://www.getontracks.org/wiki/ActionDependencies/</guid>
      <description><![CDATA[	<p><a href="http://www.getontracks.org/wiki/Category:Development/" title="Category:Development">Category:Development</a></p>

	<h1>Adding dependencies to Tracks</h1>

	<p>This is meant to become a proposal for adding dependencies to Tracks. Please feel free to comment and update with your ideas.</p>

	<h2>Motivation</h2>

	<p>Actions in Tracks are supposed to be next actions. In reality actions could become dependent on other actions to be finished first. Tracks need to be able to handle this. <em>Please note that Tracks is not a planning tool. Tracks is a tool for managing GTD-like next actions</em></p>

	<h2>Scope</h2>

	<p>The scope of this proposal is dependencies between actions.</p>

	<h2>Database</h2>

	<h3>Todo state machine model</h3>

	<p><img src="http://www.getontracks.org/wiki/afed45759a6627db10b6261ecac77b07/"  alt='afed45759a6627db10b6261ecac77b07' /><br />
A <em>pending</em> state is added to the Todo state machine, and a new event <em>block</em> is introduced for switching from active to pending state.</p>

	<h3>Single vs multiple dependencies</h3>

	<p>This seem to be one of the main questions for debate, i.e. if an action should be able to depend on more than one action. Trying to summarize the discussion it boils down to the question:<br />
<blockquote>Do the benefits of multiple dependencies outweigh the added complexity?</blockquote></p>

	<p>More on this under open issues below.</p>

	<h2>GUI</h2>

	<p>The dependency information is used in the GUI for displaying only <em>actionable</em> active actions. The views affected are: New/Edit Action, Home, Project, Tickler, Context, Tag and their mobile counterparts.</p>

	<h3>Adding the dependencies information</h3>

	<p>Use cases are:<br />
1. Adding a predecessor to an existing action.<br />
2. Adding a predecessor to a new action.<br />
3. Removing a predecessor for an existing action.<br />
4. Showing the predecessor of an action.</p>

	<p><img src="http://www.getontracks.org/wiki/3e67706d4e20aea622b3cccf6f02b462/"  alt='3e67706d4e20aea622b3cccf6f02b462' /></p>

	<p>The add and edit action forms have an added field for adding predecessors named &#8220;Depends on&#8221;. Ideally, it would work as a Gmail-like multi value autocompletion field.</p>

	<p><em><br />
RB: I don&#8217;t know if the autocomplete will work. You need to know exactly the wording of the action. But other options are perhaps even more cumbersome to use (i.e. first select project and then the action) </p>

	<p>HB: Advanced auto completion fields like Gmail&#8217;s and Firefox&#8217;s address field does not actually require exact wording. They start matching words inside sentences. Also, drag and drop as Yoichi mentioned may work to add dependencies, especially in project view.<br />
</em></p>

	<h3>Displaying the dependencies information</h3>

	<p>Use cases are:<br />
1. The user only wants to see the actionable actions.<br />
2. If an action is completed, any pending actions should be displayed.<br />
3. The user wants to add or delete dependencies and see pending actions.</p>

	<h4>1. The user only wants to see actionable actions</h4>

	<p>In the <em>Home</em> and <em>Context</em> views, the GUI does not <em>have</em> to be visibly changed to implement a first version. The user will experience that only <em>actionable</em> actions are displayed.</p>

	<h4>2. If an action is completed, any pending actions should be displayed</h4>

	<p>In the <em>Home</em>, <em>Context</em>, <em>Project</em> and <em>Tag</em> views, if an action is completed any pending actions will become active.</p>

	<h4>3. The user wants to add or delete dependencies and see pending actions.</h4>

	<p>The <em>Project</em> view is probably the best view to view and edit dependencies and pending actions.</p>

	<p>Example project view:<br />
<img src="http://www.getontracks.org/wiki/252091b9ac3ab42664052fdc900ad1dd/"  alt='252091b9ac3ab42664052fdc900ad1dd' /><br />
Let&#8217;s say that we have the following actions in our Add dependencies to Tracks project:</p>

	<p>1. Create GUI proposal<br />
2. Collect opinions<br />
3. Implement revised GUI proposal<br />
4. Learn Ruby<br />
5. Learn ORM</p>

	<p>The second action is dependent on the first action. The third action is dependent on the second, fourth and fifth action.</p>

	<p>Using dependencies when displaying Active actions we get 1, 4 and 5, since they are not dependent on other actions. So, what about 2 and 3? How shall we display them? We could use a new section called &#8220;Blocked actions in this project&#8221; or rename the Deferred section. After the Context link the > and < links represents unique successors and uncompleted predecessors respectively.</p>

	<p>The Create GUI proposal action is placed on top because it has the greatest number of successors (unblocks largest number of actions).<br />
The Collect opinions action is placed on top of the blocked actions because it has the least number of predecessors (most likely to be unblocked first).</p>

	<p><em><br />
RB: Why do you want to show < and the >. I think the depends-on relation is enough. How relevant is information on the > relation?</p>

	<p>HB: Especially for the active actions I think it is relevant to see the number of pending actions for an action. For the pending actions, it may be more relevant to see the predecessors.<br />
</em></p>

	<p>Today we use due date, show date and entry order for calculating the display order for actions in the Home, Tickler and Project page. The current display order in the project page is as follows (TBC):</p>

	<p><em><br />
RB: I was thinking of adding a plus to a next action that has one or more dependent actions</p>

	<p>HB: You mean in order to be able to expand/collapse the &#8220;depends on&#8221;/&#8221;pending&#8221; actions? I am pretty ok with that also, but see that more as a generic way to display more information about an action. If it is simple to implement, go for it, otherwise I think it would be enough with the simple visual cues given by < and > symbols with tool tips.</p>

	<p>RB: I think it could be a good way to start with the dependencies with a container with the &#8216;blocked&#8217; actions and later-on bring the plus to it. Indeed to be able to hide the non-next actions in the view, but be able to show them for review / edit</p>

	<p>HB: Is this related to your concern of showing actions more than once? Can this information be display in a tool tip or pop up instead?</p>

	<p>RB: with n-m yes. With 1-n, the plus is not easy to implement. So, just phasing here&#8230;<br />
</em></p>

	<h4>Active actions</h4>

	<p>Displayed in Home and project views.</p>

	<p>Condition: show date=null or show date<=today.<br />
Sort order: due date, entry order</p>

	<h4>Deferred actions</h4>

	<p>Displayed in Tickler and project views.</p>

	<p>Condition: show date > today.<br />
Sort order: show date, due date, entry order</p>

	<p>Dependencies gives us one further condition for displaying actions.</p>

	<h4>Active actions in project view</h4>

	<p>RB: this is the same heading as before. Is this the project view versus the home page view above?</p>

	<p>HB; The intention was rather project page in &#8220;No dependencies&#8221; vs &#8220;Dependencies&#8221; view</p>

	<p>RB: ok, changed the title</p>

	<p>This is quite straightforward. Filter on uncompleted predecessor count.</p>

	<p>Condition: (show date=null or show date=today) and uncompleted predecessors=0<br />
Sort order: due date, descending number of successors, entry order</p>

	<h4>Deferred and blocked actions</h4>

	<p>Treat a blocked action as having the latest show date of its predecessors. This makes the blocked action to be sorted into a place where it typically makes sense.</p>

	<p>RB: I&#8217;m not sure what this means for the home page. </p>

	<p>HB: The home page only displays active actions, so it will mostly affect the Project, Tickler and Tag views I guess?</p>

	<p>Condition: show date > today or uncompleted predecessors > 0<br />
Sort order:  show date, due date, predecessor count, number of successors, entry order</p>

	<p>RB: I&#8217;d like in a second phase<br />
1. Create GUI proposal (+)</p>
    &#8211; Collect opinions
    &#8211; Implement revised GUI proposal<br />
2. Learn Ruby<br />
3. Learn ORM

	<p>RB: I find this very complex. Can&#8217;t we just use < and > and use the tooltip to sum up the dependencies. This is probably why a favor the plus :-)</p>

	<p>HB: For users or developers (or both)? I hate it when users don&#8217;t understand how user friendly my apps are :-). Ok, my intention with multiple < and > was except displaying the number of dependencies, also the possibility to link or display information on the different actions. What you&#8217;re after is perhaps something more along the Notes toggle icon? So, what about some sort of &#8220;link&#8221; icon instead of the plus sign?</p>

	<p>RB: in this case both :-) I think it is to much information in a few icons.</p>

	<h2>Open Issues</h2>

	<p><ul><br />
<li>Do the benefits of multiple dependencies outweigh the added complexity?<br />
</ul></p>

	<p>Where do you see the most complexity in implementing a many-to-many relationship?</p>

	<p>RB: <br />
1. Technically: depending on how you show the relationships, it could mean that you display an action twice. All current views work on the assumption that an action is only shown once<br />
2. Tracks is not a planning tool: the more complex relationships you allow, the more people expect Tracks to help plan a project. This is not what we want with Tracks.<br />
3. I believe that in most (if not all) cases you can suffice with a 1-n relationship. This would mean changing Tracks minimally for dependencies. Less added complexity is always better imho<br />
4. the gui would just get very complicated</p>

	<p>HB: <br />
1. Can you give me an example?<br />
2. Ok, I trust your experience here.<br />
3. I agree with less complexity. However, I think it is pretty common that an action can have multiple (independent) dependencies. Such as described in the example below, or let&#8217;s say &#8220;Buy bread&#8221;, &#8220;Buy butter&#8221;, which are independent actions doable in parallel, and &#8220;Make sandwich&#8221; which are dependent on both earlier actions.<br />
4. Do you mean for the user or the developers? I think the most common use case would be to add a couple of actions to a project, in pretty much the order intended for execution, thus being able to add dependencies to existing actions. Without changing the GUI much (let&#8217;s say that we in the first step, skip any expandable sections, links to dependencies etc.), I still think most users would benefit from just using the dependency information when filtering out active next actions. The actual dependencies information would still be accessible and editable in the edit view.</p>

	<p>RB:<br />
1. I was thinking about a view with a plus to expand all dependent actions. If you have 1-n, the 1 will just expand the n actions. No problems here. If you have n-m, you can have action A which is dependent on actions B and C. On the home page, B and C will have a plus which will both show A when expanded.<br />
2. Just trying to keep the scope (and be able to handle maintenance)<br />
3. probably true, but let&#8217;s start simple. We can always enhance when the simple case works well<br />
4. both, but again from the plus-point-of-view</p>

	<h2>Closed issues</h2>

	<p><ul><br />
<li>Is it common to have dependencies between projects?</p>

	<p>RB: yes, but I think we should leave that out of scope. You can always realize this in a tree with a 1-n relation between one action from project A and all actions from project B.<br />
<li>Naming<br />
RB: I dislike the terms predecessor and successor. I find it very confusing looking at the action form in the mockup screen shot. Could we use &#8220;depends on&#8221;? </p>

	<p>I also think we need to start this very simple, so a 1-n relation between predecessor and successor. Or an action depends on one other actions. That actions has zero or more actions that depend on it.</p>

	<p>HB: I like &#8220;depends on&#8221; better in the GUI, but I think pred./succ. is sometimes more precise when discussing technical solutions.</p>

	<p>RB: Ok, that sounds good<br />
</ul></p>

	<h2>Tickets</h2>

	<p>It is partly related to (at least) the following tickets:<br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/105/">#105</a><br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/300/">#300</a> (most activity in this one)<br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/721/">#721</a> (duplicate)<br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/475/">#475</a><br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/185/">#185</a><br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/360/">#360</a></p>

	<p>Some overlap with<br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/82/">#82</a><br />
<a href="http://www.assembla.com/spaces/tracks-tickets/tickets/91/">#91</a></p>

	<p>Note: <a href="http://www.assembla.com/spaces/tracks-tickets/tickets/903/">#903</a> tracks a GUI mockup suggestion.</p>

	<h2>Code</h2>

	<p>Code at git://github.com/bohrax/tracks.git</p>


 ]]></description>
      <dc:subject>ActionDependencies</dc:subject>
      <dc:date>2009-09-23T21:11:50+00:00</dc:date>
    </item>

    
    </channel>
</rss>