Page MenuHomePhabricator

Provide `bin/storage quickstart` to automate generation of `quickstart.sql`
ClosedPublic

Authored by epriestley on Sep 28 2014, 8:35 PM.
Tags
None
Referenced Files
F15580849: D10603.id25440.diff
Wed, May 7, 8:11 AM
F15535192: D10603.diff
Thu, Apr 24, 3:56 AM
F15527536: D10603.id25476.diff
Tue, Apr 22, 4:30 AM
F15515164: D10603.id.diff
Fri, Apr 18, 8:15 AM
F15511911: D10603.diff
Thu, Apr 17, 6:22 AM
F15445403: D10603.diff
Mar 27 2025, 1:44 PM
F15429041: D10603.id.diff
Mar 24 2025, 12:06 AM
F15389296: D10603.id25476.diff
Mar 15 2025, 5:05 AM
Subscribers

Details

Summary

Ref T1191. Currently, the quickstart.sql gets generated in a pretty manual fashion. This is a pain, and will become more of a pain in the world of utf8mb4.

Provide a workflow which does upgrade + adjust + dump + destroy, then massages the output to produce a workable quickstart.sql.

Test Plan

Inspected output; I'll test this more throughly before actually generating a new quickstart, but that's some ways away.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Provide `bin/storage quickstart` to automate generation of `quickstart.sql`.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

This'll be cool.

resources/sql/patches/065.sshkeys.sql
7

sneaking this in here?

This revision is now accepted and ready to land.Sep 30 2014, 5:08 PM
resources/sql/patches/065.sshkeys.sql
7

When reapplying the patches with --no-quickstart (which normal users will never do), this patch failed, probably because of MySQL version differences. This makes it succeed; the column type will be adjusted later if necessary.

src/infrastructure/storage/management/workflow/PhabricatorStorageManagementQuickstartWorkflow.php
107–110

Although we no longer generate these after --single-transaction, I'm leaving them since they don't hurt anything and improve generality.

This revision was automatically updated to reflect the committed changes.