Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

478 B
Raw Blame
import type { Config } from "drizzle-kit";

const URL = process.env.DATABASE_URL;

if (!URL) throw new Error("DATABASE_URL must be set!");
if (!URL?.startsWith("mysql://"))
	throw new Error(
		"DATABASE_URL must be a 'mysql://' URI. Drizzle Kit doesn't support the fetch adapter!",
	);

export default {
	schema: "./schema.ts",
	out: "./migrations",
	dialect: "mysql",
	dbCredentials: { url: URL },
	casing: "snake_case",
	tablesFilter: ["*", "!cluster_*"],
} satisfies Config;