<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>phTagr &#187; media</title>
	<atom:link href="http://www.phtagr.org/tag/media/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phtagr.org</link>
	<description>Tag your photos once. Find them forever.</description>
	<lastBuildDate>Fri, 06 Jan 2012 11:10:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Merged branch phtagr-media-schema</title>
		<link>http://www.phtagr.org/2009/04/25/merged-branch-phtagr-media-schema/</link>
		<comments>http://www.phtagr.org/2009/04/25/merged-branch-phtagr-media-schema/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:51:18 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[announce]]></category>
		<category><![CDATA[Related Links]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.phtagr.org/?p=131</guid>
		<description><![CDATA[The branch phtagr-media-schema was merged to the trunk successfully. The new database schema fits more the database relation between files and media and changes the model Image to the model Media. Upgrade your phTagr instance The database must be upgraded to the new schema. However, the new merged trunk comes with a handy shell script [...]]]></description>
			<content:encoded><![CDATA[<p>The branch <em>phtagr-media-schema</em> was merged to the trunk successfully. The new database schema fits more the database relation between files and media and changes the model <em>Image</em> to the model <em>Media</em>.</p>
<p><strong>Upgrade your phTagr instance</strong></p>
<p>The database must be upgraded to the new schema. However, the new merged trunk comes with a handy shell script <code>upgradeMediaSchema</code> which handles the database upgrade and data migration. Update your phtagr code of trunk via svn and change to your phtagr directory and execute the shell script by &#8216;<code>../cake/console/cake -app phtagr upgradeMediaSchema upgrade</code>&#8216;</p>
<pre><code style="font-family: courier; color: #aaa; background-color: black; display:block">
phtagr$ <span style="font-weight: bold">svn up</span>
phtagr$ <span style="font-weight: bold">../cake/console/cake -app phtagr upgradeMediaSchema</span>
Schema Upgrade Shell Script for Media Schema
---------------------------------------------------------------
Help screen
---------------------------------------------------------------
upgrade
    Upgrade schema to media schema
---------------------------------------------------------------
phtagr$ <span style="font-weight: bold">../cake/console/cake -app phtagr upgradeMediaSchema upgrade</span>
Schema Upgrade Shell Script for Media Schema
---------------------------------------------------------------
Prepare upgrade...
Upgrade schema...
Migrate 132 media...
Finalizing upgrade...
All done. Enjoy!
phtagr$
</code></pre>
<p><strong>Reasons for a new Schema<br />
</strong></p>
<p>The old schema uses only one table for a image/media which includes also the file information. Since a media is not only restricted to one file, this schema does not model the <em>reality</em> well. E.g. a media could be a video and the video thumb file or an image with a sound memo attached to it. Since now, phTagr uses also the term <em>media</em> instead of <em>image</em>.</p>
<p>The new schema splits the old table <em>images</em> to the table <em>media</em> and table <em>files</em> while the model <em>Media</em> gets a HasMany relation to the model <em>File</em>.</p>
<p><strong>Other changes</strong></p>
<p>The merge comes also with an improved import functionality. phTagr has now a <em>Filter Manger</em> which handles the import and export of a media and/or metadata. Currently there are three different filters:</p>
<ul>
<li>Image Filter (JPEG)</li>
<li>Video Filter (AVI, MOV, MPEG, THM)</li>
<li>GPS Filter (LOG)</li>
</ul>
<p>New filters could be implemented more convenient (e.g. a Sound Filter which attaches a sound memo to a media). The Filter Manager supports a priority based import that a video thumbnail is read after the video file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phtagr.org/2009/04/25/merged-branch-phtagr-media-schema/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

