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

Differences in database dump from new installs. #155

Open
dhruvkb opened this issue May 24, 2021 · 3 comments
Open

Differences in database dump from new installs. #155

dhruvkb opened this issue May 24, 2021 · 3 comments

Comments

@dhruvkb
Copy link
Member

dhruvkb commented May 24, 2021

Since new installations of meta-environment using VVV install newer versions of Ubuntu, MariaDB and mysqldump, taking a fresh database export gives a different output. For example, importing the file

meta-environment/wordpressorg.test/provision/wordpressorg_dev.sql

and exporting using mysqldump produces lots of insignificant differences:

  1. The metadata at the top is different. Eg:
--- MySQL dump 10.16  Distrib 10.1.44-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19  Distrib 10.4.19-MariaDB, for debian-linux-gnu (x86_64)
 --
 -- Host: localhost    Database: wordpressorg_dev
 -- ------------------------------------------------------
--- Server version      10.1.44-MariaDB-0ubuntu0.18.04.1
+-- Server version      10.4.19-MariaDB-1:10.4.19+maria~bionic
  1. Numbers are not quoted in the new export. Eg:
-  `user_id` int(10) NOT NULL DEFAULT '0',
+  `user_id` int(10) NOT NULL DEFAULT 0,
  1. DEFAULT NULL is added to some columns. Eg:
-  `description` text,
+  `description` text DEFAULT NULL,

What's the recommended way to proceed?

@tomjn
Copy link
Collaborator

tomjn commented May 24, 2021

Is this causing problems? I'm unsure what the action to take is here or the concern.

@dhruvkb
Copy link
Member Author

dhruvkb commented May 24, 2021

I'm about to make a PR that creates a new site under wordpressorg.test/ and wanted to confirm if these changes (which will be present in the PR) are okay to commit as a part of the new database dump.

@iandunn
Copy link
Member

iandunn commented May 24, 2021

Related:

In general they're fine as long as they're intentional and don't mess up other sites.

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

No branches or pull requests

3 participants