'Add custom columns'

def upgrade_version_9(self):

    self.db.execute(u'\n                                                                CREATE    TABLE    custom_columns    (\n                                                                                id                            INTEGER    PRIMARY    KEY    AUTOINCREMENT,\n                                                                                label                TEXT    NOT    NULL,\n                                                                                name                    TEXT    NOT    NULL,\n                                                                                datatype    TEXT    NOT    NULL,\n                                                                                mark_for_delete            BOOL    DEFAULT    0    NOT    NULL,\n                                                                                editable    BOOL    DEFAULT    1    NOT    NULL,\n                                                                                display        TEXT    DEFAULT    "{}"    NOT    NULL,\n                                                                                is_multiple    BOOL    DEFAULT    0    NOT    NULL,\n                                                                                normalized    BOOL    NOT    NULL,\n                                                                                UNIQUE(label)\n                                                                );\n                                                                CREATE    INDEX    IF    NOT    EXISTS    custom_columns_idx    ON    custom_columns    (label);\n                                                                CREATE    INDEX    IF    NOT    EXISTS    formats_idx    ON    data    (format);\n                                ')
