# src/allographer/schema_builder/queries/mysql/sub/create_column_query

Theme:

- Index

Search:
Group by:

In MySQL, BLOB, TEXT, GEOMETRY or JSON column can't have a default value. BLOB/TEXT column caughn't use in key specification without a key length.

# Imports

../../../enums, ../../../models/table, ../../../models/column, ../schema_utils

# Procs

    proc alterAddForeignKey(column: Column; table: Table): string {.
        ...raises: [KeyError], tags: [], forbids: [].}

    proc createColumnString(table: Table; column: Column): string {.
        ...raises: [KeyError, DbError], tags: [], forbids: [].}

    proc createForeignKey(table: Table; column: Column): string {.
        ...raises: [KeyError], tags: [], forbids: [].}

    proc createIndexString(table: Table; column: Column): string {....raises: [],
        tags: [], forbids: [].}