Giter Club home page Giter Club logo

Comments (10)

worldspawn avatar worldspawn commented on July 30, 2024 1

#13

Before outputting the primary key constraint just check the specified data type and output the preferred SERIAL version. SERIAL as fallback.

from pg.

wzrdtales avatar wzrdtales commented on July 30, 2024

As there is also bigint in postgre, this would rather be named BIG_SERIAL instead of BIG_INTEGER. If you wont mind you could also open a PR and we work on getting this into this driver.

from pg.

murmur76 avatar murmur76 commented on July 30, 2024

Do you mean we're going to add additional types such as BIG_SERIAL and SMALL_SERIAL to this file only for PostgreSQL support?
If it is, I'm afraid that end users using other databases could get confused. So I prefer my initial suggestion. How about your opinion?

By the way, I'm willing to make a PR for this issue :)

from pg.

wzrdtales avatar wzrdtales commented on July 30, 2024

To support db specifics better drivers are now not a part of the project anymore and every driver will and should contain its own documentation outlining the differences.

But to discuss this, may be it makes sense anyway to additionally add what you suggested. Using the proper datatypes for postgre if autoincrement is getting set. This would add both: The support of the datatypes itself and the handling of the generic datatypes that are available overall.

from pg.

wzrdtales avatar wzrdtales commented on July 30, 2024

With not the project I meant, they are not a part of db-migrate, the main module, anymore, but are standalone now. While db-migrate enforces some opinions there is still the freedom for drivers to support some specifics. But that would also ment that they need to maintain those. For all drivers officially maintained this is the same. And there are plans to extend the drivers to get the most out of the different systems.

For example there is a new driver planned, the MariaDB driver which is supporting specifics like virtual columns, dynamic columns and so on and so forth.

I wanted to write a bit about how I imagine how drivers are related to db-migrate and what a good migration looks like for me, but really haven't had the time for it. I need to set me a date for this to finally do it :)

from pg.

murmur76 avatar murmur76 commented on July 30, 2024

Yeah, I agree on what you think of. Supporting all databases only with generic data types has a clear limit.
So basically you're going to extend main db-migrate's data types to this repos and manage postgres specific data types here, right? It seems that it will take some time until you finish base work for that.

I'll keep this issue until it's ready, then I could make a PR for it.

from pg.

wzrdtales avatar wzrdtales commented on July 30, 2024

Yes there are some things that need some time, there is also a big chunk that is upcoming for db-migrate. I'm currently redesigning some things such as the seeder handling and changes to the testing. Tests are currently only on db-migrates level but they need to be migrated to the drivers itself.

Please feel free to suggest, ask and also help whenever you want, I will try to answer and react as fast as possible :)

from pg.

murmur76 avatar murmur76 commented on July 30, 2024

That sounds nice. Testing drivers on their own repo is exactly what i was thinking. If you can make some TODOs, maybe I can help you on free time.

from pg.

wzrdtales avatar wzrdtales commented on July 30, 2024

I think I will transfer my tasks from asana into issues and take some time to describe them all. I have marked me the sunday to start with this :)

from pg.

yosbelms avatar yosbelms commented on July 30, 2024

Any progress on this?

from pg.

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.