# src/allographer/schema_builder/queries/sqlite/change_column

Theme:

- Index

Search:
Group by:

# Imports

../../../query_builder/models/sqlite/sqlite_query, ../../../query_builder/models/sqlite/sqlite_exec, ../../models/table, ../../models/column, ../../enums, schema_utils, sqlite_query_type, sub/create_column_query

# Procs

    proc changeColumn(self: SqliteSchema; isReset: bool) {....raises: [DbError,
        ValueError, Exception, OSError, IOError, KeyError, RegexError,
        CatchableError], tags: [TimeEffect, RootEffect, WriteDirEffect,
                                ReadDirEffect, ReadIOEffect, WriteIOEffect,
                                ReadDbEffect], forbids: [].}

  - create tmp table with new column difinition
  - copy data from old table to tmp table
  - delete old table
  - rename tmp table name to old table name