<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 54: edit table field discards/changes structure</title><link>https://sourceforge.net/p/sqlitemanager/bugs/54/</link><description>Recent changes to 54: edit table field discards/changes structure</description><atom:link href="https://sourceforge.net/p/sqlitemanager/bugs/54/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 31 Jul 2011 12:52:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sqlitemanager/bugs/54/feed.rss" rel="self" type="application/rss+xml"/><item><title>edit table field discards/changes structure</title><link>https://sourceforge.net/p/sqlitemanager/bugs/54/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Greetings, I have a table in an SQLite3 database:&lt;/p&gt;
&lt;p&gt;create table if not exists a (&lt;br /&gt;
id integer primary key autoincrement,&lt;br /&gt;
a text not null,&lt;br /&gt;
b integer default 0,&lt;br /&gt;
c boolean default 0,&lt;br /&gt;
d integer default null&lt;br /&gt;
);&lt;/p&gt;
&lt;p&gt;and I wanted to change the boolean field c to a text field default null and clicked modify, removed the "0" from the default value field and selected "null" in the dropdown field "null".&lt;/p&gt;
&lt;p&gt;I expected all other fields to remain unchanged, I expected an ALTER TABLE call, instead sqlitemanager executed a create table statement - and changed data types of two other fields:&lt;/p&gt;
&lt;p&gt;* the autoincrement attribute was lost on the field id&lt;br /&gt;
* the default value of the field b integer default 0 was changed to default null !&lt;/p&gt;
&lt;p&gt;CREATE TABLE 'a' (&lt;br /&gt;
'id' INTEGER PRIMARY KEY , &lt;br /&gt;
'a' TEXT NOT NULL , &lt;br /&gt;
'b' INTEGER , &lt;br /&gt;
'c' TEXT , &lt;br /&gt;
'd' INTEGER &lt;br /&gt;
) ; &lt;/p&gt;
&lt;p&gt;Please fix. Thanks for the otherwise great software!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ernst R.</dc:creator><pubDate>Sun, 31 Jul 2011 12:52:09 -0000</pubDate><guid>https://sourceforge.net897c090de563e41474847a4d99ac0f714c2d0977</guid></item></channel></rss>