Closed balamark closed 8 years ago
wait, don't merge the db
ok. only change the import script. Now, fb,twitter,candidate url should works fine.
Actually on SQLite at least, unique does not count NULL, so it should not throw an error. Not sure why it would be doing so for you. I'll try the new import script and see if I get an error.
I see some column now has constraint 'unique' and that cause the script to fail if there are more than one candidates without the website value. Because it's a Null value for those candidates without website url and it seems like it's enforcing uniqueness on Null.
Also, don't forget to update the script if the schema changes. (insert_query and insert_value) or create an item and let me know.