<div dir="ltr"><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 2:54 AM, Marek Červenka <span dir="ltr"><<a href="mailto:cervajs@fpf.slu.cz" target="_blank">cervajs@fpf.slu.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Dne 4.2.2016 v 12:17 A J Stiles napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
On Thursday 04 Feb 2016, Marek Červenka wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
hi,<br>
<br>
is there way to get SQL schema for Asterisk 13.7.0 without alembic?<br>
thanks<br>
</blockquote>
Assuming you already have Asterisk up and running, you can just use<br>
<br>
$ mysqldump -d -uroot DATABASE TABLE1 TABLE2 TABLE3 ...<br>
<br>
will print (on STDOUT, so you can just use > to write it to a new file, >> to<br>
join onot an existing file or | to pass it through a program) the SQL<br>
statements required to recreate the given tables in the given database. (If<br>
you don't specify any tables, it will assume you mean all of them.)<br>
<br>
The -d means "don't dump any data", so it will dump just the CREATE statements<br>
and not the INSERT statements that would actually populate the database.<br>
</blockquote>
<br>
i have asterisk 13.3.0 running on box where i cannot install alembic<br>
i need upgrade to latest asterisk.<br>
for me is the best way apply only "alter table ..." commands for upgrade 13.3.0->13.7.2</blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">If you can run alembic on a different box, you can run it in offline mode with the --sql option to generate an upgrade script.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style=""><font face="arial narrow, sans-serif"><a href="https://alembic.readthedocs.org/en/latest/offline.html">https://alembic.readthedocs.org/en/latest/offline.html</a></font><br></div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class=""><font color="#888888"><br>
<br>
-- <br>
---------------------------------------<br>
Marek Cervenka<br>
=======================================<br>
<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></font></span></blockquote></div><br></div></div>