Importing text from mysql-core breaks .array() on pg tables
@sungodtemple▲ 0 net votes
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.