migration

Laravel 4.1 Run migrations and update configuration from package dependencies

和自甴很熟 提交于 2019-12-24 13:07:54
问题 I'm developing a Laravel 4 package that uses Sentry 2. In order for Sentry 2 to be installed I have to run migrations and publish their configurations: php artisan migrate --package=cartalyst/sentry php artisan config:publish cartalyst/sentry I would like to allow users of my package to simply run the migrations and publish configs for my own package without having to run that for Sentry 2, or any other package that I might require. Is there any way to do this? Should this be done at all, or

Migrating TFService to TFService (visualstudio.com)

天涯浪子 提交于 2019-12-24 12:59:09
问题 Some projects we're working on are hosted on a TFS on visualstudio.com. However, the owner is an early adopter account that will expire soon. We already have another TFS in place (also on visualstudio.com), and now we want to migrate the code and version history from TFService A to TFService B. I've tried using the TFS Integration Tool (http://tfsintegration.codeplex.com/) and created a configuration to migrate between the two subdomains on visualstudio.com. However, despite the tool

How to delete unused users after TFS2010 Migration-Upgrade from TFS2008

廉价感情. 提交于 2019-12-24 12:18:42
问题 I have a situation where after performing a migration-upgrade of our TFS2008 server to a new domain, I have a bunch of straggling users from the old domain that never created anything inside the 2008 server, nor need access anymore. Does anyone know how do fully delete these old domain users from TFS2010 post-migration? Thanks, John 回答1: You might need to be more specific about "delete". If they're in the [SERVER]\Team Foundation Valid Users group, simply remove them from the group, and they

Migrating wordpress 3.0.1 from one server to another

a 夏天 提交于 2019-12-24 10:57:43
问题 Here's what I wanted to dot, what I've done, and... the (poor) result: I wanted to: migrate my personal Website from one server to another one, and only change the IP on my DNS. So: I changed the IP on my DNS. Ok. Everything's fine (it's been 7 days now) I dump my Wordpress 3.0.1 database from server A I copied recursively the full directory of my personal Website to the server B on server B: I've created my utf8 wordpress database then re-injected the SQL dump (from A) I've created the good

Import MySQL-DB-Dump into a Rails app using a migration file

对着背影说爱祢 提交于 2019-12-24 09:48:26
问题 I have an old PHP application with a bunch of MySQL tables. I want to rewrite it with Rails(3) and want to import the old data. How can I write a migration-script to import the MySQL-Dump into a sqlite DB? 回答1: It's out of my merit to judge why migrate from mysql to sqlite3 db. Why not run your dev environment as well in mysql? anyway, following is the script. #!/bin/sh mysqldump --compact --compatible=ansi --default-character-set=binary mydbname | grep -v ' KEY "' | grep -v ' UNIQUE KEY "' |

“\xC4” from ASCII-8BIT to UTF-8 when running rake db:migrate on Heroku

三世轮回 提交于 2019-12-24 09:28:23
问题 When I try to run heroku run rake db:migrate in my application, I get the following error "\xC4" from ASCII-8BIT to UTF-8 with a stacktrace of /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:150:in `write' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:150:in `puts' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:150:in `display_error_message' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:142:in

General error: 1215 Cannot add foreign key constraint in laravel

ⅰ亾dé卋堺 提交于 2019-12-24 08:30:45
问题 Doing the migrations I got this error: SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table books add constraint books_writer_id_foreign foreign key ( writer_id ) references writers ( id )) I've tried a lot of things but noone looks to work. 2018_02_18_3165165_create_books_table.php <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBooksTable extends Migration { /

Call to a member function roles() on array (Laravel 5.3)

家住魔仙堡 提交于 2019-12-24 08:12:57
问题 I'm basically new to Laravel. I keep getting this "Call to member function roles() on array" error. I'm trying to add a user's role into my database which has many to many relation. I've looked for an answer for this everywhere and the results said I just needed to add a return statement in my function. But I already have a return statement and it still doesn't work. So here are my codes. User.php model <?php class User extends Model implements Authenticatable { use \Illuminate\Auth

Migration issues to JBoss AS 7.1

社会主义新天地 提交于 2019-12-24 08:03:14
问题 I am migrating application from JBoss AS 4.X to JBoss AS 7.1. I am facing the following problem I have a userdefined xml which has some configuration related stuff like paths, initial load setting etc which I used to place in Application Server/bin in JBoss AS 4.X. It was working fine. Now i placed the same file in jboss-as-7.1.1.Final\bin but it is not working and loading on start up of server. Where do I need to keep such XML's in 7.1 Server? And do I need to explicitly mention in jboss

What strategies are available for migrating Access databases to SQL server-based applications?

半城伤御伤魂 提交于 2019-12-24 06:53:12
问题 I'm considering undertaking a project to migrate a very large MS Access application to a new system based on SQL Server. The existing system is essentially an ERP application with a couple of dozen users, all sharing the Access database over the network. The database has around 300 tables and lots of messy VBA code. This system is beginning to break down (actually, it's amazing it has worked as long as it has). Due to the size and complexity of the Access application, a 'big bang' approach is