Git Product home page Git Product logo

migrate-v3-to-v4's People

Contributors

eartharoid avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

neondroidd

migrate-v3-to-v4's Issues

[BUG] Error on migration from v3 to v4 (mysql)

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hello! I have an issue while migrating to v4 mysql database.

The provided value for the column is too long for the column's type. Column: name
Migrating ticket 1108366718646095962...
prisma:error
Invalid `prisma.archivedRole.create()` invocation:

Then I manually increased the size of the name column to 1024 and everything works as expected (tried 255, but that's not enough).

Also this. Increased the size of the name column of archivedChannels.

The provided value for the column is too long for the column's type. Column: name
Error:
Invalid `prisma.ticket.create()` invocation:

Expected Behavior

Expected no errors.

Steps To Reproduce

Migrate from v3 to v4 mysql database.

Environment

- OS: Ubuntu 20.04
- Node: v18
- NPM: 9.5.1
- Bot: v4

Anything else?

No response

[BUG] Archived Channels during migration has an warning/error

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

{
  data: {
    archivedChannels: {
      createMany: {
        data: []
      }
    },
    category: {
      connect: {
?       id?: Int
      },
?     create?: CategoryCreateWithoutTicketsInput | CategoryUncheckedCreateWithou                                                                                                                                                                                                                                                                                                                                                           tTicketsInput,
?     connectOrCreate?: {
?       where: CategoryWhereUniqueInput,
?       create: CategoryCreateWithoutTicketsInput | CategoryUncheckedCreateWitho                                                                                                                                                                                                                                                                                                                                                           utTicketsInput
?     }
    },
    claimedBy: undefined,
    closedBy: undefined,
    closedReason: null,
    createdAt: new Date('2022-10-07T16:59:22.000Z'),
    createdBy: {
      connectOrCreate: {
        create: {
          id: '979270263592087582'
        },
        where: {
          id: '979270263592087582'
        }
      }
    },
    firstResponseAt: new Date('2022-10-07T17:03:20.000Z'),
    guild: {
      connect: {
        id: '957713464548270161'
      }
    },
    id: '1027988522059182150',
    lastMessageAt: new Date('2022-10-07T17:06:41.000Z'),
    number: 28,
    open: true,
    openingMessageId: '1027988524001132595',
    pinnedMessageIds: [],
    topic: null
  }
}

Argument data.category.connect of type CategoryWhereUniqueInput needs at least o                                                                                                                                                                                                                                                                                                                                                           ne argument. Available args are listed in green.

Note: Lines with ? are optional.

Expected Behavior

Migrate everything successfully

Steps To Reproduce

I followed the guidelines on the main hub

Environment

- OS: Linux
- Node: 18
- NPM: 7.6.3
- Bot: 3.1.3

Anything else?

my discord is godlyreaper, I can provide an SQL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.