On Tue, 20 May 2014, Sambuddha Basu wrote:
> Hello Rick,
> I have faced some problems while working on the database migration. The
> following are listed out:
> On adding a new column with type Boolean, I get some errors.
Please paste the errors. You should be able to add a boolean column using
sqlalchemy ok.
Here's a link to the test in the alembic code for this
https://github.com/zzzeek/alembic/blob/master/tests/test_sqlite.py#L13
> So Craig suggested that I should create a new table which has a is_private
> field, copy all the bmarks data to that table. Then, I should delete the
> original bmarks table and rename the newly created table to bmarks.
> What do you think about this? Should I go ahead with this?
No, we should not need to do this. I do think that the column will need a
default value. I'd propose that the default be made true at first. In this
way, all bookmarks added will be private, and we'll have to locate all
bookmark input sources in order to make sure that they public vs defaulting
everything to public.
If you continue to hit issues please paste the full debug information. The
commands you're running, the traceback of those errors, and the code that's
being run. It's difficult to help debug without all the information.
--
Rick Harding
@mitechie
http://blog.mitechie.com
https://bmark.us