<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 54: edit table field discards/changes structure</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/54/" rel="alternate"/><link href="https://sourceforge.net/p/sqlitemanager/bugs/54/feed.atom" rel="self"/><id>https://sourceforge.net/p/sqlitemanager/bugs/54/</id><updated>2011-07-31T12:52:09Z</updated><subtitle>Recent changes to 54: edit table field discards/changes structure</subtitle><entry><title>edit table field discards/changes structure</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/54/" rel="alternate"/><published>2011-07-31T12:52:09Z</published><updated>2011-07-31T12:52:09Z</updated><author><name>Ernst R.</name><uri>https://sourceforge.net/u/ernstlat/</uri></author><id>https://sourceforge.net897c090de563e41474847a4d99ac0f714c2d0977</id><summary type="html">&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;</summary></entry></feed>