drizzle-kit 0.20.0-ca89eb7 → 0.20.0-e44f3ff
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +8 -4
- package/package.json +1 -1
package/index.cjs
CHANGED
@@ -58233,7 +58233,7 @@ var init_studioUtils = __esm({
|
|
58233
58233
|
};
|
58234
58234
|
prepareMySqlSchema = async (path4) => {
|
58235
58235
|
const imports = prepareFilenames(path4);
|
58236
|
-
const mysqlSchema4 = {};
|
58236
|
+
const mysqlSchema4 = { public: {} };
|
58237
58237
|
const relations4 = {};
|
58238
58238
|
const { unregister } = await safeRegister();
|
58239
58239
|
for (let i = 0; i < imports.length; i++) {
|
@@ -58255,7 +58255,7 @@ var init_studioUtils = __esm({
|
|
58255
58255
|
};
|
58256
58256
|
prepareSQLiteSchema = async (path4) => {
|
58257
58257
|
const imports = prepareFilenames(path4);
|
58258
|
-
const sqliteSchema2 = {};
|
58258
|
+
const sqliteSchema2 = { public: {} };
|
58259
58259
|
const relations4 = {};
|
58260
58260
|
const { unregister } = await safeRegister();
|
58261
58261
|
for (let i = 0; i < imports.length; i++) {
|
@@ -61549,6 +61549,8 @@ var dropCommand = new import_commander.Command("drop").option("--out <out>", `Ou
|
|
61549
61549
|
await dropMigration(out);
|
61550
61550
|
});
|
61551
61551
|
var studioCommand = new import_commander.Command("studio").option("--port <port>", "Custom port for drizzle studio [default=4983]").option("--host <host>", "Custom host for drizzle studio [default=0.0.0.0]").option("--verbose", "Print all stataments that are executed by Studio").option("--config <config>", `Config path [default=drizzle.config.ts]`).action(async (options) => {
|
61552
|
+
await printVersions();
|
61553
|
+
await assertOrmCoreVersion();
|
61552
61554
|
const { validateStudio: validateStudio2 } = await Promise.resolve().then(() => (init_studio(), studio_exports));
|
61553
61555
|
const drizzleConfig = await validateStudio2(options);
|
61554
61556
|
const {
|
@@ -61598,8 +61600,10 @@ var studioCommand = new import_commander.Command("studio").option("--port <port>
|
|
61598
61600
|
)
|
61599
61601
|
);
|
61600
61602
|
if (driver === "d1") {
|
61601
|
-
|
61602
|
-
|
61603
|
+
console.log(
|
61604
|
+
withStyle.fullWarning(
|
61605
|
+
"It seems like you are trying to access your D1 Database. Please make sure to run 'wrangler login' before using Drizzle Studio to ensure it has your token for making requests to the D1 Database. If you encounter an error related to CLOUDFLARE_TOKEN, please run 'wrangler login' and restart the studio"
|
61606
|
+
)
|
61603
61607
|
);
|
61604
61608
|
}
|
61605
61609
|
server.start({
|