src/allographer/schema_builder/queries/sqlite/change_column

Search:
Group by:

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