Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: record 'name' to 'subdomain' #380

Merged
merged 1 commit into from
Mar 18, 2023

Conversation

SerpentBytes
Copy link
Contributor

Description

Closes #377

Steps to Test

  1. npm run setup
  2. Run the project locally

@SerpentBytes SerpentBytes self-assigned this Mar 18, 2023
@SerpentBytes SerpentBytes requested review from humphd, a user and Genne23v March 18, 2023 17:39
@SerpentBytes SerpentBytes marked this pull request as ready for review March 18, 2023 17:39
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great fix, and simplifies/clarifies a bunch of the API for DNS stuff.

@cychu42, @dadolhay we'll have to figure out how I handle the DB update on staging, since I don't think prisma db push will work here with existing data in the table?

@SerpentBytes SerpentBytes merged commit b634fbf into DevelopingSpace:main Mar 18, 2023
@SerpentBytes SerpentBytes deleted the issue-377 branch March 18, 2023 19:37
@ghost
Copy link

ghost commented Mar 18, 2023

This change is awesome @SerpentBytes, thank you for implementing it!

@humphd It would probably just delete that column and recreate a new one instead.

Locally, we can drop the complete db
For staging and prod, we can also do the same, or we can write a manual migration doing:

alter table `record` rename column `name` to `subdomain`;

@humphd
Copy link
Contributor

humphd commented Mar 19, 2023

OK, staging is updated with subdomain in db, no problems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should rename the record table name column to subdomain
2 participants