<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 플러그인의 index.xml 설정에서 테이블 컬럼 옵션 여부]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=4413&amp;type=atom"/>
	<updated>2008-01-13T08:10:23Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=4413</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인의 index.xml 설정에서 테이블 컬럼 옵션 여부]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=23423#p23423"/>
			<content type="html"><![CDATA[<p>MySQL이 아닌 DBMS에도 돌리는 것을 목표로 로드맵이 서 있기 때문에 MySQL에서만 사용이 가능한 auto_increment는 앞으로도 제공하지 않을 예정입니다^^. (현재 지원기능이 일부 들어있는데, 제외될 예정입니다.) 텍스트큐브 자체의 테이블 다루는 부분에서도 auto_increment를 계속 걷어내고 있는 중입니다.</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2008-01-13T08:10:23Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=23423#p23423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인의 index.xml 설정에서 테이블 컬럼 옵션 여부]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=23416#p23416"/>
			<content type="html"><![CDATA[<p>추가로...<br />컬럼이 char이나 varchar형일 때 index.xml에서 default 값을 NULL이 아닌 (공백)으로 처리하는 방법이 있나요?</p><p>&lt;default&gt;&lt;/default&gt; 이렇게 되어 있을 경우 NULL이 들어가더군요.<br />&lt;default&gt;&#039;&#039;&lt;/default&gt; 이나 &lt;default&gt;&quot;&quot;&lt;/default&gt; 으로는 (공백)을 기본값으로 지정할 수가 없었습니다.</p><p>MySQL에서 default 값은 NULL일 때보다 기본값이 들어가 있는 게 더 빠르다고 알고 있습니다.<br />(3.x 때의 이야기라 4.x 나 5.x 에서도 그대로인지는 모르겠습니다. ^^;)</p>]]></content>
			<author>
				<name><![CDATA[noname]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1244</uri>
			</author>
			<updated>2008-01-13T02:14:37Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=23416#p23416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인의 index.xml 설정에서 테이블 컬럼 옵션 여부]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=23411#p23411"/>
			<content type="html"><![CDATA[<p><a href="http://help.tattertools.com/ko/Plugin_Tutorial">http://help.tattertools.com/ko/Plugin_Tutorial</a></p><p>이 포럼에서 검색해 찾아간 위의 플러그인 튜토리얼 사이트를 가도 업데이트가 안 되어 있어서 몇가지 시도를 해봤으나 unsigned 설정은 없는 것 같군요.</p><p>필드에 auto_increment 설정도 필요해서 &lt;autoincrement&gt;1&lt;/autoincrement&gt; 로 해주고 위의 편법과 같이 시도해보니 테이블 생성이 안 되었습니다.</p><p>unsigned 설정을 하면서도 auto_increment 설정도 같이 할 수 있으면 합니다.</p>]]></content>
			<author>
				<name><![CDATA[noname]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1244</uri>
			</author>
			<updated>2008-01-12T20:56:39Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=23411#p23411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[플러그인의 index.xml 설정에서 테이블 컬럼 옵션 여부]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=23410#p23410"/>
			<content type="html"><![CDATA[<div class="codebox"><pre><code>  &lt;storage&gt;
    &lt;table&gt;
                &lt;name&gt;Plugins_name&lt;/name&gt;
                &lt;fields&gt;
                        &lt;field&gt;
                                &lt;name&gt;field_name&lt;/name&gt;
                                &lt;attribute&gt;int&lt;/attribute&gt;
                                &lt;length&gt;11&lt;/length&gt;
                                &lt;isnull&gt;0&lt;/isnull&gt;
                                &lt;default&gt;0&lt;/default&gt;
                        &lt;/field&gt;
                &lt;/fields&gt;
        &lt;/table&gt;
  &lt;/storage&gt;</code></pre></div><p>index.xml 설정에서 테이블의 컬럼을 설정할 때 int(11) unsigned 형식으로 만들려고 합니다.</p><p>그런데 속성을 보니 unsigned 가 어디에 들어가는지 안 보여서, length 속성을 빼고<br />&lt;attribute&gt;int(11) unsigned&lt;/attribute&gt; 이런 식으로 하니 제대로 생성이 되긴 하더군요.</p><p>이런 식으로 하는 게 편법인지 모르겠습니다. 만약 속성이 없다면 추가해주셨으면 합니다.</p>]]></content>
			<author>
				<name><![CDATA[noname]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1244</uri>
			</author>
			<updated>2008-01-12T19:30:43Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=23410#p23410</id>
		</entry>
</feed>
