rjjakes / sqlitetomysql Goto Github PK
View Code? Open in Web Editor NEWA simple Python script to convert sqlite dump files to MySQL for Drupal 8.
A simple Python script to convert sqlite dump files to MySQL for Drupal 8.
get this wrong extra lines at the end of result file
INSERT INTO sqlite_sequence VALUES('menu_tree',437);
INSERT INTO sqlite_sequence VALUES('sequences',1);
INSERT INTO sqlite_sequence VALUES('watchdog',562);
INSERT INTO sqlite_sequence VALUES('locales_source',9818);
INSERT INTO sqlite_sequence VALUES('locales_location',1328);
INSERT INTO sqlite_sequence VALUES('queue',659);
INSERT INTO sqlite_sequence VALUES('commerce_store',1);
INSERT INTO sqlite_sequence VALUES('taxonomy_term_data',43);
INSERT INTO sqlite_sequence VALUES('taxonomy_term_revision',43);
INSERT INTO sqlite_sequence VALUES('url_alias',8749);
INSERT INTO sqlite_sequence VALUES('cml',4);
INSERT INTO sqlite_sequence VALUES('file_managed',4562);
INSERT INTO sqlite_sequence VALUES('commerce_product',4353);
INSERT INTO sqlite_sequence VALUES('migrate_message_cml_product',73);
INSERT INTO sqlite_sequence VALUES('commerce_product_variation',4096);
INSERT INTO sqlite_sequence VALUES('commerce_order',3);
INSERT INTO sqlite_sequence VALUES('commerce_order_item',8);
No Indexes in tables
In node tabel expect
CREATE TABLE `node` (
`nid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`vid` int(10) unsigned DEFAULT NULL,
`type` varchar(32) CHARACTER SET ascii NOT NULL,
`uuid` varchar(128) CHARACTER SET ascii NOT NULL,
`langcode` varchar(12) CHARACTER SET ascii NOT NULL,
PRIMARY KEY (`nid`),
UNIQUE KEY `node_field__uuid__value` (`uuid`),
UNIQUE KEY `node__vid` (`vid`),
KEY `node_field__type__target_id` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
but have
CREATE TABLE `node` (
`nid` int(11) NOT NULL AUTO_INCREMENT,
`vid` int(11) DEFAULT NULL,
`type` varchar(32) NOT NULL,
`uuid` varchar(128) NOT NULL,
`langcode` varchar(12) NOT NULL,
PRIMARY KEY (`nid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
exists PRIMARY KEY (nid)
not exists:
UNIQUE KEY `node_field__uuid__value` (`uuid`),
UNIQUE KEY `node__vid` (`vid`),
KEY `node_field__type__target_id` (`type`)
SET NAMES utf8mb4;
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
at the top of the result file to work with nolatin chars
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.