Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
custom_table_migrate
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
custom_table_migrate
Commits
df37a552
Commit
df37a552
authored
Jun 7, 2017
by
Rizwan Siddiquee
Browse files
Options
Downloads
Patches
Plain Diff
remove array_chunk
parent
35ef9902
Branches
7.x-1.x
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
custom_table_migrate.admin.inc
+1
-1
1 addition, 1 deletion
custom_table_migrate.admin.inc
custom_table_migrate.module
+1
-1
1 addition, 1 deletion
custom_table_migrate.module
with
2 additions
and
2 deletions
custom_table_migrate.admin.inc
+
1
−
1
View file @
df37a552
...
...
@@ -66,7 +66,7 @@ function custom_table_migrate_data_port_to_mongodb_form_submit($form, &$form_sta
// Fetch Table's Data form $tablename.
$result
=
db_query
(
'SELECT * FROM {'
.
$tablename
.
'}'
);
foreach
(
array_chunk
(
$result
,
100
)
as
$value
)
{
foreach
(
$result
as
$value
)
{
$operations
[]
=
array
(
"custom_table_migrate_batch_porting_mysql_table_to_mongodb"
,
array
(
$value
,
$tablename
,
$mysql_int_types
,
$mysql_float_types
),
...
...
This diff is collapsed.
Click to expand it.
custom_table_migrate.module
+
1
−
1
View file @
df37a552
...
...
@@ -13,7 +13,7 @@ function custom_table_migrate_menu() {
'title'
=>
'Migrate Custom Table'
,
'description'
=>
'This Module use to Migrate Custom Table from Mysql to Mongodb'
,
'page callback'
=>
'drupal_get_form'
,
'page arguments'
=>
array
(
'custom_table_data_port_to_mongodb_form'
),
'page arguments'
=>
array
(
'custom_table_
migrate_
data_port_to_mongodb_form'
),
'access arguments'
=>
array
(
'administer site configuration'
),
'file'
=>
'custom_table_migrate.admin.inc'
,
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment