mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-13 09:46:59 +02:00
Filter out VIEWS from the current MySQL migration processing.
This commit is contained in:
parent
236c9ffdf5
commit
446df213bd
12
mysql.lisp
12
mysql.lisp
@ -53,11 +53,13 @@
|
|||||||
for (table-name . coldef)
|
for (table-name . coldef)
|
||||||
in
|
in
|
||||||
(caar (cl-mysql:query (format nil "
|
(caar (cl-mysql:query (format nil "
|
||||||
select table_name, column_name,
|
select c.table_name, c.column_name,
|
||||||
data_type, column_type, column_default,
|
c.data_type, c.column_type, c.column_default,
|
||||||
is_nullable, extra
|
c.is_nullable, c.extra
|
||||||
from information_schema.columns
|
from information_schema.columns c
|
||||||
where table_schema = '~a' ~@[and table_name in (~{'~a'~^,~})~]
|
join information_schema.tables t using(table_schema, table_name)
|
||||||
|
where c.table_schema = '~a' and t.table_type = 'BASE TABLE'
|
||||||
|
~@[and table_name in (~{'~a'~^,~})~]
|
||||||
order by table_name, ordinal_position" dbname only-tables)))
|
order by table_name, ordinal_position" dbname only-tables)))
|
||||||
do
|
do
|
||||||
(let ((entry (assoc table-name schema :test 'equal)))
|
(let ((entry (assoc table-name schema :test 'equal)))
|
||||||
|
Loading…
Reference in New Issue
Block a user