Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two bug of drizzle-kit introspect:mysql #385

Open
hdj258 opened this issue Apr 30, 2024 · 0 comments
Open

two bug of drizzle-kit introspect:mysql #385

hdj258 opened this issue Apr 30, 2024 · 0 comments

Comments

@hdj258
Copy link

hdj258 commented Apr 30, 2024

import { mysqlTable, mysqlSchema, AnyMySqlColumn, unique, varchar, text, tinyint, index, decimal, datetime, int, longtext, foreignKey, double, tinytext, char, mediumtext, date, mysqlEnum } from "drizzle-orm/mysql-core"
import { sql } from "drizzle-orm"

export const allLocator = mysqlTable("all_locator", {
id: bigint("id", { mode: "number" }).autoincrement().notNull(),
},
(table) => {
return {
locator#locator2: index("locator#locator_2").on(table.locator, table.materialId, table.tenantId, table.deleteFlag),
}
});

1, no import bigint
2, locator#locator2 includes Special symbols, so "locator#locator2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant