Git Product home page Git Product logo

Comments (8)

SahAssar avatar SahAssar commented on July 21, 2024 1

I've added a page in the docs for this, if there is anything else that you feel should go there please an issue or PR in the docs repo! :)

from auth.

SahAssar avatar SahAssar commented on July 21, 2024

from auth.

jadwigo avatar jadwigo commented on July 21, 2024

Hmm.. I'm finding out about the not a drop in replacement at the moment too ...

Maybe a list of common things that need to change somewhere.

Stuff like is_member() that needs to be renamed to is_auth()
And member() to auth(), member_meta() to auth_meta()

from auth.

SahAssar avatar SahAssar commented on July 21, 2024

The procedure is basically: "Is it called member? change it to auth."

I thought it best to be consistent with the renaming, so I renamed all the things.

from auth.

SahAssar avatar SahAssar commented on July 21, 2024

@jadwigo I've been thinking about this one. There is no way for us to automatically fix all of these things, and even if we could fix db tables, config and templates via some god-awful regex or some other method that'd still leave any extensions that depend on the old namespaces and so on.

I'd rather view this as a "spiritual continuation" sort of thing, not a drop-in replacement, and half-assing the migration (only updating the db tables) does not seem productive to me. I'd be very happy to have that SQL in the docs though, it just seems to me like automating it is setting up expectations we won't meet. Does that make sense to you?

from auth.

jadwigo avatar jadwigo commented on July 21, 2024

Yes it makes sense... automating it would probably mean also creating a transpiler for members-addon extensions or something like that.

Maybe a "migrating_from_members.md" in the documentation that outlines the steps you need to do would do the trick.

from auth.

SahAssar avatar SahAssar commented on July 21, 2024

Yep, gonna put that together before I tag :) I'mma keep this issue around to remind me to do it

from auth.

GwendolenLynch avatar GwendolenLynch commented on July 21, 2024

For PostgreSQL you need:

ALTER TABLE bolt_members_account RENAME TO bolt_auth_account;
ALTER TABLE bolt_members_account_meta RENAME TO bolt_auth_account_meta;
ALTER TABLE bolt_members_oauth RENAME TO bolt_auth_oauth;
ALTER TABLE bolt_members_provider RENAME TO bolt_auth_provider;
ALTER TABLE bolt_members_token RENAME TO bolt_auth_token;

ALTER SEQUENCE bolt_members_account_id_seq RENAME TO bolt_auth_account_id_seq;
ALTER SEQUENCE bolt_members_account_meta_id_seq RENAME TO bolt_auth_account_meta_id_seq;
ALTER SEQUENCE bolt_members_oauth_id_seq RENAME TO bolt_auth_oauth_id_seq;
ALTER SEQUENCE bolt_members_provider_id_seq RENAME TO bolt_auth_provider_id_seq;
ALTER SEQUENCE bolt_members_token_id_seq RENAME TO bolt_auth_token_id_seq;

from auth.

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.