"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var chunk_ZUHJASAP_exports = {};
__export(chunk_ZUHJASAP_exports, {
  ConfigValidationError: () => ConfigValidationError,
  DbDropNeedsForceError: () => DbDropNeedsForceError,
  DbPushIgnoreWarningsWithFlagError: () => DbPushIgnoreWarningsWithFlagError,
  MigrateDevEnvNonInteractiveError: () => MigrateDevEnvNonInteractiveError,
  MigrateNeedsForceError: () => MigrateNeedsForceError,
  MigrateResetEnvNonInteractiveError: () => MigrateResetEnvNonInteractiveError,
  NoSchemaFoundError: () => NoSchemaFoundError
});
module.exports = __toCommonJS(chunk_ZUHJASAP_exports);
var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
var import_internals = require("@prisma/internals");
var ConfigValidationError = class extends Error {
  constructor(message) {
    super(message);
  }
};
(0, import_internals.setClassName)(ConfigValidationError, "ConfigValidationError");
var NoSchemaFoundError = class extends Error {
  constructor() {
    super(
      `Could not find a ${(0, import_chunk_SKRR5WT4.bold)(
        "schema.prisma"
      )} file that is required for this command.
You can either provide it with ${(0, import_chunk_SKRR5WT4.green)(
        "--schema"
      )}, set its path in the \`schema\` property in your Prisma Config file, or put it into the default location ${(0, import_chunk_SKRR5WT4.green)(
        "./prisma/schema.prisma"
      )} ${(0, import_internals.link)("https://pris.ly/d/prisma-schema-location")}`
    );
  }
};
(0, import_internals.setClassName)(NoSchemaFoundError, "NoSchemaFoundError");
var DbPushIgnoreWarningsWithFlagError = class extends Error {
  constructor() {
    super(
      `Use the --accept-data-loss flag to ignore the data loss warnings like ${(0, import_chunk_SKRR5WT4.bold)(
        (0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)("prisma db push --accept-data-loss"))
      )}`
    );
  }
};
(0, import_internals.setClassName)(DbPushIgnoreWarningsWithFlagError, "DbPushIgnoreWarningsWithFlagError");
var MigrateNeedsForceError = class extends Error {
  constructor(subcommand) {
    super(
      `Use the --force flag to use the ${subcommand} command in an unattended environment like ${(0, import_chunk_SKRR5WT4.bold)(
        (0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma migrate ${subcommand} --force`))
      )}`
    );
  }
};
(0, import_internals.setClassName)(MigrateNeedsForceError, "MigrateNeedsForceError");
var MigrateResetEnvNonInteractiveError = class extends Error {
  constructor() {
    super(
      `Prisma Migrate has detected that the environment is non-interactive. It is recommended to run this command in an interactive environment.

Use ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)(`--force`))} to run this command without user interaction.
See ${(0, import_internals.link)("https://pris.ly/d/migrate-reset")}`
    );
  }
};
(0, import_internals.setClassName)(MigrateResetEnvNonInteractiveError, "MigrateResetEnvNonInteractiveError");
var MigrateDevEnvNonInteractiveError = class extends Error {
  constructor() {
    super(
      `Prisma Migrate has detected that the environment is non-interactive, which is not supported.

\`prisma migrate dev\` is an interactive command designed to create new migrations and evolve the database in development.
To apply existing migrations in deployments, use ${(0, import_chunk_SKRR5WT4.bold)((0, import_chunk_SKRR5WT4.green)(`prisma migrate deploy`))}.
See ${(0, import_internals.link)("https://pris.ly/d/migrate-deploy")}`
    );
  }
};
(0, import_internals.setClassName)(MigrateDevEnvNonInteractiveError, "MigrateDevEnvNonInteractiveError");
var DbDropNeedsForceError = class extends Error {
  constructor(subcommand) {
    super(
      `Use the --force flag to use the ${subcommand} command in an unattended environment like ${(0, import_chunk_SKRR5WT4.bold)(
        (0, import_chunk_SKRR5WT4.green)((0, import_internals.getCommandWithExecutor)(`prisma db ${subcommand} --force --preview-feature`))
      )}`
    );
  }
};
(0, import_internals.setClassName)(DbDropNeedsForceError, "DbDropNeedsForceError");
