GithubHelp home page GithubHelp logo

Comments (4)

ash-jc-allen avatar ash-jc-allen commented on August 16, 2024

Hey @HeadStudios!

To run the migrations, you'll first need to migrate them to your own database/migrations folder by using the php artisan vendor:publish --provider="AshAllenDesign\ShortURL\Providers\ShortURLProvider" command.

You should then be able to run php artisan migrate to run the package's migrations.

I hope this helps? 🙂

from short-url.

HeadStudios avatar HeadStudios commented on August 16, 2024

Thank you for your help - I can confirm running the command you specified has moved the migrations to my database folder - my challenge now is re running those specific migrations when they have been run in the past as my database including its structure was deleted and I am recreating it from scratch using a dump from 2 weeks ago that did not include the structure.

Any input on how I can rerun just the shorturl datbase migrations specifically would be much appreciated - but otherwise I appreciate all your help and I understand this is outside the scope of the plugin and does not reflect any way on the quality of what you have built.

Thank you!

Any

from short-url.

HeadStudios avatar HeadStudios commented on August 16, 2024

As an alternative of helping me match the table structure and not being able to run the import - are you able to send an .sql file with the most recent database structure for the short_urls and short_url_visits tables? I could then simply import the structure and then import my database dump.

For the record below is my dump file:
https://gist.github.com/HeadStudios/5beda1c6c24e06415adbd8d1e5b04ab3

And the import I am attempting to import into that structure:
https://gist.github.com/HeadStudios/713a2096bc34ad4a9b1aa5d6971ab04e

And the error I receive when I try to import the file:
https://share.getcloudapp.com/xQuOJoDn

Any input or help much appreciated.

Thank you!

from short-url.

ash-jc-allen avatar ash-jc-allen commented on August 16, 2024

Hey @HeadStudios! I'm not 100% sure what's gone wrong with your application, sorry, but I'd imagine that running the migrations that you've published will give you the DB structure you're looking for.

Unfortunately, I'm going to close this issue because I like to keep the issues specific to questions/problems with the package (to make it easier for me to stay on top of, etc.). But I do hope you manage to get it sorted though 🙂

from short-url.

Related Issues (20)

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.