People who code: we want your input. Take the Survey

Questions tagged [migration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
196 views

Migrating entries to custom element and UID

I want to migrate some entries and its content to a new table in our plugin. Below is a simplified SQL that seems to do the trick. insert into craft_myplugintable(id, field1, field2, field3, ...
7
votes
1answer
2k views

Migrated Server, Now Getting Logged Out Constantly

I just moved my site from one MediaTemple (gs) instance to another. I copied and recreated the database on the new server, moved over all the files, and updated the internal references that pointed to ...
1
vote
0answers
279 views

Yiic migrate command not working (memory exhausted)

I'm trying to launch a basic "yiic migrate create BasicMe MyPlugin" But every time the memory gets exhausted, whatever memory_limit I set (I even tried 8Gb). Fatal error: Allowed memory size of ...
2
votes
1answer
133 views

Using services/records etc in migrations

The database migrations documentation does say: Please note that we do not recommend using records directly within a migration Are there technical reasons for this recommendation, or is it ...
6
votes
1answer
585 views

Using Yiic for plugin migration

I've been trying to follow the docs for creating a plugin migration (https://craftcms.com/docs/plugins/migrations) but any attempts to run yiic seem to die with: CDbConnection failed to open the DB ...
5
votes
2answers
2k views

Programatically Adding Fields to a Layout

I am looking to add a field (or perhaps a group?) to the userlayout via a database migration. I've looked over the docs, and found Is it possible to add a custom field to User model from a plugin? ...
2
votes
2answers
738 views

What's the easiest way to migrate my local site data to my live site?

I've finished my site locally, and would like to migrate my data to my production database. I've already uploaded the templates, assets, etc, but I'm unsure how to 'dump and load' (referenced from ...
2
votes
1answer
132 views

What is the best way to handle Events that get triggered during a migration?

We have a Form plugin and an Email plugin. Users can setup the Email Plugin to send off notification emails when a particular Event happens. Some users setup a notification email to be sent when a ...
5
votes
1answer
877 views

How to create a migration for the main Craft DB?

Let's say we add a section or other elements (field, category, tags, assets, etc) in the CP on our dev servers and want to roll that change out to a stage or production environment, is there a way to ...
1
vote
1answer
325 views

Are there any Craft specific migration tools that extend Yii's built-in functionality?

We're working on developing a proper deployment system for projects built on Craft, and wondering if there are any Craft specific tools built-in that can assist with generating database migrations, ...
0
votes
1answer
691 views

Where are all the references to the URL stored?

I have my first craft website all working great on my local dev server and want to move it to the production server. I think I went about this the wrong way but I installed a fresh install of craft on ...
3
votes
2answers
984 views

Migrations for Deployment

Currently each time we make changes to our dev instance of our Craft install (add fields, plugins, change settings in CP), we dump the database and upload it to the production database server. This ...
4
votes
2answers
3k views

How do I create database tables for a craft cms plugin on install?

I am absolutely new to craft plugin development and could not find any documentation on creating database tables specific to a new plugin. How are new tables created when a plugin is installed? I am ...
11
votes
3answers
5k views

Migrating a whole website between Craft instances

A developer built our site locally configured as "craft.dev". At the same time, my sysadmin was busy getting Craft installed with Apache on our Linux server. He set that up with our real domain and ...
4
votes
1answer
648 views

Why would I get a “CHttpRequest is unable to determine the request URI” when creating a migration?

I have logged into the server and attempted to create a migration for my plugin. However I get this output: exception 'CException' with message 'CHttpRequest is unable to determine the request URI.' ...
4
votes
1answer
701 views

How do you import hierarchical data that uses the adjacency list model into Craft Structures or Categories?

Craft makes it nice and easy for us to have hierarchy in Structures or Categories. Many other popular CMS platforms support hierarchical data as well but some support it using a different data model. ...
15
votes
4answers
5k views

How do I migrate a Wordpress project to Craft CMS?

How do I migrate my Wordpress project to Craft CMS? What would be the best way?
101
votes
8answers
14k views

What's the best practice for handling data migration and organization across development environments?

This issue becomes especially difficult when there are multiple environments, with multiple developers working on different features that affect the data structure. The holy grail is a git-style ...
22
votes
4answers
7k views

How do I import data into Craft?

What's the best known way to import masses of data into Craft? Are there tools that support the migration of content/users from say XML, JSON etc.

1 2
3