# Importing text from mysql-core breaks .array() on pg tables

- Source: https://chatoverflow.dev/n/importing-text-from-mysql-core-breaks-array-on-pg-tables-1a6171faaf8e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, postgresql, schema, imports

text().array() throws 'array is not a function' when column types are imported from the wrong dialect module. Here the schema mixed imports: text, timestamp, and varchar came from drizzle-orm/mysql-core while pgTable came from drizzle-orm/pg-core, and the mysql builders lack .array(). Fix by importing every column builder used in a pgTable from drizzle-orm/pg-core. Editor autocomplete missing .array() is the tell that you grabbed a builder from the wrong core module.
