FAQ Database Discussion Community


Migrating Custom .NET ORM to Entity Frame / Dapper

c#,mysql,asp.net-web-api,migration,dapper
I've inherited a project that is massive in scale, and a bit of a labyrinth. The traffic is substantial enough to want to optimize the data access, so I've began converting some WCF services that are invoked by javascript to Web API. Unfortunately, the database's primary keys (not auto incrementing)...

.menu() is not a function; jQuery upgrade

javascript,jquery,migration,upgrade
I am migrating a menu widget from jQuery 1.6.4 to a newer version of jQuery , 1.11.1 $(document).ready(function () { $('#takeMeToLink').menu({ content: $('#globalContent1').html(), flyOut: false }); }); Markup <a id="takeMeToLink" href="#" style="color:black"> Take Me To <span style="height:3px;width:15px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust ms-viewselector-arrow"> <img src="/_layouts/15/images/fgimg.png" alt="Open Menu" style="border-width:0px;position:absolute;left:-0px...

differences between `--table` and `--create` options in laravel5 make:migration

laravel,migration,laravel-5
I don't know what differences between php artisan make:migration --table and php artisan make:migration --create options?!I was completely confused :( Are there any differences? When should I use --table option or --create option? laravel says that : The --table and --create options may also be used to indicate the name...

Incorrect table definition; there can be only one auto column and it must be defined as a key

laravel,laravel-4,migration
I keep getting error while migrating in Laravel [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key Code public function up() { Schema::create('inventories', function($table){ $table->engine = 'InnoDB'; $table->increments('id')->unsigned(); $table->string('sku',255); $table->string('description', 255 )->nullable; $table->tinyInteger('stock',5)->nullable()->unsigned();...

After import from Eclipse to Android Studio cannot run Execution failed for task ':app:dexDebug"

android-studio,migration,adt
Have an Android project working in Eclipse (4.4.2) ADT, running on Linux (Ubuntu 14.10). I have imported to Android Studio (1.1.0) and managed to get rid of my initial compilation errors. The next thing I want to d is to run on my phone - I push the green "Run"...

Visual Studio 2015 RC Entity Framework 6.1.3 Migrations Error

c#,.net,migration,entity-framework-6,visual-studio-2015
The pasted below error only occurs when the solution has more than one project that references the EntityFramework. When run the "Enable-Migrations" or "Add-Migration", I received the following error: New-Object : The value supplied is not valid, or the property is read-only. Change the value, and then try again. At...

Join table comment in rails 4 migration

ruby-on-rails,ruby-on-rails-4,join,migration,has-and-belongs-to-many
I'm pretty new on rails 4 and I'm not really sure about how should be my join_table. I've done the migration rails g migration CreateJoinTableQuestionSubTopic question sub_topic And I get this file class CreateJoinTableQuestionSubTopic < ActiveRecord::Migration def change create_join_table :questions, :sub_topics do |t| # t.index [:question_id, :sub_topic_id] # t.index [:sub_topic_id,...

Rails - relation to the same model

ruby-on-rails,migration
Every instance of the model market can have a supermarket and a submarket. I added the following code in the market model. has_one :market, as: submarket belongs_to :market, as: supermarket I also created a migration def change add_column :markets, :supermarket_id, :integer end However, I still get errors: :in `method_missing': undefined...

Not getting Downloaded - “Azure DocumentDB Data Migration Tool”

mongodb,azure,migration,azure-documentdb
Here I'm working with Microsoft Azure. with in that i'm trying to use the open source DocumentDB data migration tool to import data to Microsoft Azure DocumentDB from various sources, including JSON files, CSV files, SQL, MongoDB, Azure Table storage, and DocumentDB collections. But the problem is "Azure DocumentDB Data...

Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually

django,migration,django-south,django-1.8
I am trying to migrate from Django 1.6 to Django 1.8. I was using South for managing migrations in Django 1.6. I have successfully created new migration files by python manage.py makemigrations. while running python manage.py migrate --fake-initial, I am getting this error Traceback (most recent call last): File "manage.py",...

How does rails know I have a pending migration?

mysql,ruby-on-rails,migration
I get that rails uses timestamps in the migration filenames. How does it utilize those to determine what migrations have been run so far and what still needs to be run? Is there a value stored somewhere that lets it know the last migration that was run?

Adding field to Laravel migration schema

migration,laravel-5
I have read Laravel's documentation and other forums but it just doesn't work on me. I have successfully migrated a table, now I wanted add a field, changed the schema to 'table' but all I get is 'Nothing to migrate'. Here is what I've done. Migration: <?php use Illuminate\Database\Schema\Blueprint; use...

yii2 renaming migration file to reorder the migration error

php,yii,migration,yii2
I'm trying to rename migration files to reorder the migration, but I found an error. I know the name of migration file is generate based on timestamp, example: m150311_012031_create_place_table.php m150311_020901_create_meeting_table.php I forgot I should create meeting table first before I create place table, so what I do I run yii...

No Code First Migrations When Deploying Via Visual Studio 2013

azure,visual-studio-2013,migration,code-first-migrations
I've written an API with no azure connection currently. I am now ready to publish this to Azure. In doing so, I assumed, as was the case with many other deployments, there would be an option for code first migrations. The website already exists, so when I log in I...

Codeignter Migration to Alter a Table

php,mysql,codeigniter,migration,database-migration
I have crated a Migration in codeigniter to create a MySQL table with 4 columns. Now I want to change the name of one of the columns without losing the data in that table. First, I have enabled migration & set the version to 1. Then, I have created a...

Unique Index when data already exists

php,symfony2,doctrine,migration,unique
I ran into troubles when I want to add new column mapped ONE TO ONE. It creates unique index on that column and while executing SQL it obviously fail, because that table already contains rows. It's not a problem to remove data in development database, but it will be in...

Scope attribute migration from Struts1 to Struts2

java,struts2,migration,struts-1
I am migrating an application from Struts1 to Struts2. I could migrate everything except the scope attribute from the below action tag of the Struts1 configuration file (struts-config.xml). Struts1 configuration: <action path="/DomainAndIPBlocking" type="com.tarangtech.da.struts.action.DomainBlockedListAction" name="DomainBlockForm" scope="session" input="/DomainAndIPBlocking.do" validate="false"> <forward name="success" path="/jsp/SystemAdminConsol/DomainBlocking.jsp"/> </action> Migrated Struts2 configuration:...

Drop and then create same columns in current up migration function

laravel,laravel-4,migration
Schema::table('users', function (Blueprint $table) { $table->dropTimestamps(); $table->dropColumn(['email', 'bio']); $table->string('email', 20)->unique()->after('id'); $table->string('bio', 150)->after('surname'); $table->timestamps(); }); That is what I've got now. So, I have the columns existing atm in my table, but I want to modify and re-arrange them a bit. But when I run the migration, I get SQL error...

Laravel Failed to open stream warning in Ubuntu 14

laravel-4,migration,composer-php,ubuntu-14.04
I am new in Ubuntu and try to migrate a laravel app to ubuntu. Please take a look at below steps done. 1.Copied my laravel project and upload database. 2.Started my Xampp server and pointed my laravel app in browser, it showing error like. Warning: require(/opt/lampp/htdocs/timegear/bootstrap/../vendor/autoload.php): failed to open stream:...

Migration error with devise

mysql,ruby-on-rails,devise,migration
Hey I have a problem with my page here. I used a gem 'devise' to create a migration file for "users" I might have forgotten to rake db:migrate after that but I'm really not too sure what I did here to duplicate anything. I ran the code rails g devise...

Migrating from socket.io 0.9.x to 1.4.x - can't get socket.io to start

node.js,socket.io,migration
I am in the process of updating an old application to use socket.io 1.4 instead of 0.9 (and express 4 instead of 3) but I am unable to get socket.io to start up. In my old app I would set up things as follows: var socket = require('socket.io'); var express...

create dynamic default values for column in rails?

ruby-on-rails,postgresql,callback,migration,one-to-many
I am not sure how to go about this, or if there is a better way to do this, but I have a table called leads(many) and it references agent (one). I want to make a migration that sets a default value for the agent_id column in the leads table....

Yii migration extend custom class

php,yii,migration
class m150602_071107_naujassss extends CDbMigration { public function up() { } public function down() { echo "m150602_071107_tests does not support migration down.\n"; return false; } /* // Use safeUp/safeDown to do migration with transaction public function safeUp() { } public function safeDown() { } */ } CDbMigration is default class to...

a4j:htmlCommandLink in RichFaces 4

jsf,migration,richfaces
I've been migrating to RichFaces 4.5.2 and while parsing the pages into xhtml format I ran into the following error: Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: htmlCommandLink My quesion is what is the re-placer of this component in RichFaces 4? ...

Laravel 5 Migration, Invalid default value when integer

php,migration,schema,laravel-5,builder
I was trying to create an table having a 0 as its default integer value The code looks like: Schema::create('gsd_proyecto', function($table) { $table->increments('id'); $table->string('nombre', 80)->unique(); $table->string('descripcion', 250)->nullable(); $table->date('fechaInicio')->nullable(); $table->date('fechaFin')->nullable(); $table->integer('estado', 1)->default(0); $table->string('ultimoModifico', 35)->nullable(); $table->timestamps(); }); But when I run the migration I'm getting the...

CodeIgniter migration from 1.7.2 to 2.0 returns blank page

php,codeigniter,migration
I have the task to migrate a codeigniter webpage from 1.7.2 to 2.0 ( 2.2 ) and then I need to migrate it to 3.0. I followed this guide. After I did everything I uploaded it to the ftp and now I am getting a blank page. I think I've...

Laravel seed after migrating

php,laravel,laravel-4,migration,laravel-5
Is there something I can put in my migrations to automatically seed the table with test data once the migration has completed? Or do you have to seed separately?...

Trouble while adding south to existing app

python,django,migration,django-south
I am following the djano-rest-framework tutorial. I am trying to add south for db migration. This is what my pip freeze looks like: Django==1.8.1 djangorestframework==3.1.2 MySQL-python==1.2.5 Pygments==2.0.2 South==1.0.2 My settings.py for the tutorial project looks like this: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'snippets', 'south' )...

How to define composite primary key using codeIgniter migrations?

php,codeigniter,migration
i convert my database to migrations successfully, except the following line: PRIMARY KEY (`key_id`,`user_id`); Currently i doing it as: $this->dbforge->add_key('key_id,user_id',TRUE); but no Luck. gives the following Error: Error Number: 1072<p>Key column 'key_id,user_id' doesn't exist</p> can anyone help? sorry for English Grammar and if i am not clear....

Is it better practice to add foreign keys in a separate migration in Laravel (or in any migration workflow for that matter)?

mysql,database,laravel,migration
I've been running into a few problems here and there trying to do migrations in Laravel. The more tables I have, the more times I'm trying to redo my migrations, and I'm running into several Foreign Key Constraint errors when one migration runs before with a foreign key based in...

play framework migration from 2.0.8 to 2.1.0 Dynamic form cannot find symbol

java,playframework,playframework-2.0,migration,playframework-2.1
I have migrated play framework from 2.0.8 to 2.1.0 and i have followed this guide but i am getting error cannot find symbol while using dynamic form. here is my code: final DynamicForm form = form().bindFromRequest(); ^cannot find symbol I have also import : import play.data.Form; anyone has idea about...

Copy a CVS project into another CVS project

maven,copy,migration,repository,cvs
In our CVS repository our projects look like this: - app-parent - app-backend - app-gui - app-common Now I want to represent the Maven structure of our projects also in our CVS repository. So the repository should then look like this: - app-parent - app-backend - app-gui - app-common How...

Web pages download to desktop instead of load?

magento,migration
I am in the middle of migrating a Magento site over to a new server. I followed instructions provided in this video to a T- https://www.youtube.com/watch?v=OiWmZFxrZns However, now when I try to access the transferred site, any pages just download to my desktop instead of displaying in browser. I have...

Rails: populate an existing table via a migration

ruby-on-rails,ruby,migration
Say I have an existing migration in Rails: class CreateStudies < ActiveRecord::Migration def change create_table :studies do |t| t.string :display_name, null: false t.string :tag_name, null: false t.timestamps end add_index :studies, :tag_name, unique: true end end Later on I realise that I would like to populate this table with a number...

FluentMigrator NotSupportedException - Mapping XML Column

xml,migration,notsupportedexception
I'm using FluentMigrator in a project and I'm having some trouble with an update in database when I try to add a new xml column in a existing table. I'm using: FluentMigrator 1.3.1.0 FluentMigrator.Tools 1.3.1.0 SQL Server 2014 .Net Framework 4.5 The migrator is configured by using SqlServer2012ProcessorFactory. In one...

Not able to add an extra column to existing model in django

django,migration
I deleted migrations folder and now i am not able to add an additional column to the existing model. I assume it is because i deleted the migrations folder. What is the fix for this? I am using django1.7

Migrations in production Laravel

laravel,migration,database-migration
I'm working on a personal website, and i try to find a solution to a problem and any help would be welcome. I work with Github because I'm working from several places (work, home...), and I'm wondering about migrations when I transfer my application in production. Locally, I don't have...

Laravel migration primary (or key) “Identifier name is too long”

mysql,laravel,migration
I have simple Laravel 4.x migration specifying a composite primary key : // ... public function up() { Schema::create('my_super_long_table_name', function($table) { $table->integer('column_1'); $table->integer('column_2'); $table->integer('column_3'); $table->primary(['column_1', 'column_2', 'column_3']); }); } // ... And when running php artisan migrate this error is thrown : SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier...

Reversing a specific Rails Migration, can't remove

ruby-on-rails,ruby,heroku,migration
class UpdateIndexOnUsers < ActiveRecord::Migration def change sql = 'DROP INDEX index_users_on_email' sql << ' ON users' if Rails.env == 'production' # Heroku pg ActiveRecord::Base.connection.execute(sql) end end I have to undo this migration. When I revert it using rake db:migrate VERSION=20150611173430,I get this error. StandardError: An error has occurred, this and...

1366 Incorrect integer value: Laravel 4

php,laravel,laravel-4,migration
I keep getting Incorrect integer value: '' for column 'stock' Here is how I migrate stock $table->integer('stock')->nullable()->default(0)->unsigned(); Here is how I grab it to store into stock $inventory->stock = $value[2]; // some data are ''= empty string Is there a way to set a default value for it ? How...

How to create a migration in Laravel 5 that only adds a column to an existing table

php,mysql,laravel,migration,artisan-migrate
I'm trying to add a number of new column to the generic 'users' table that comes with the Laravel 5 installation. However I create a new migration that does a Schema::create as follows: Schema::create('users', function(Blueprint $table) { $table->increments('id'); $table->string('username'); $table->string('email')->unique(); $table->string('password', 60); $table->string('avatar'); $table->string('first_name'); $table->string('last_name'); $table->string('nickname'); $table->rememberToken();...

Is it necessary to write down() for every up() in migration in laravel?

laravel,migration,database-migration,laravel-migrations
class UpdateSessions extends Migration { public function up() { Schema::table('sessions', function($table){ $table->string('comCode')->nullable()->change(); }); } public function down() { // What should i write here? } } I have already created a sessions table writing a migration to change the column to be nullable. Now i am confused on what should...

How to resolve discrepancies found by Git-TFS verify

git,version-control,tfs,migration,git-tfs
Git-TFS has a verify command, which the help describes thus: "The verify command helps identify inaccuracies of a fetch, clone or quick-clone from TFS." I have a proprietary repository which I am migrating from TFS to Git. Running git tfs verify revealed that there are a significant number of files...

Data migration from liferay portal to websphere portal

migration,liferay,portlet,websphere-portal,ibm-connections
i need to migrate the content of the list below from liferay Portal to WebSphere Portal. and we will use IBM Connection for the portlets. a. Calendar. b. Discussion Boards/Blogs/Forums can anyone give me an API that can be use for migrating the data? I have an options here but...

Ruby rails rake not rolling back far enough

migration,rake,rollback
I try "rake db:rollback STEP=6" or more, but when I run "rake db:migrate" it only shows the last migration file being executed: == 20150508040222 CreateStructure: migrating ================================== == 20150508040222 CreateStructure: migrated (0.0000s) ========================= When I try to check if the new fields have been created in the previous step using...

how to migrate a number of large sites from IIS 7 to IIS 8.5?

iis,migration
I have a number of large sites with thousands of images consuming few gigabytes each. We got a new server and I have to move all these sites there (old server will be decommissioned). What's the best way to do this and what I should be paying attention to? Old...

Django migrations reference a deleted module

django,migration,django-migrations
I have a Model named FooModel defined in a my_app/models/foo.py. After deleting foo.py, running Django (1.7) migrations raises an error since the old migration files import foo.py (import myapp.models.foo.FooModel). How should I resolve this? This happens when the model has an ImageField with an upload_to parameter....

Is lightweight migration needed when changing validation rules in Core Data

ios,validation,core-data,migration,persistence
I know that lightweight migration can handle those things : Adding or removing an entity, attribute, or relationship Making an attribute non-optional with a default value Making a non-optional attribute optional But do we need lightweight migration for changing validation rules? And how to handle situation where we have defined...

How can I copy my git repository from my windows machine to a linux machine via usb drive?

git,migration
I have a git server running on a windows desktop machine that has inexplicably lost the ability to connect to the internet. I want to move the repo to a linux machine. I already know how to switch my cloned repos to point to the new master once it's setup,...

Django Migrations command workflow

django,migration
There are three migration commands in Django: python manage.py makemigrations python manage.py migrate python manage.py syncdb In what order do these commands should be executed in terms of workflow of a basic project? Django Version: 1.8...

Rails Migration doesn't apply

ruby-on-rails,ruby,migration
I have the following migration: class MoveInventoryItems < ActiveRecord::Migration def up schraenke = ('F'..'J') List::Inventory::Item.find_each do |item| if schraenke.include?(item.location[0]) item.location[0] = item.location[0].next.next item.save! end end end end I am trying to change a variable for specific items. When I try to output the item after saving, it looks correct. It...

Migrate data from Redmine -> Mantis BT

migration,redmine,data-migration,mantis
Is there any possibility to migrate data from Redmine to Mantis BT ? Is this a loss-less operation ? I've read, that Mantis contains less project management tools than Redmine. Thus mantis could be a subclass of Redmine -> therefore would we loose some project data ?...

migration rollback reverts the previous schema but previous data is lost

laravel,migration,database-migration,laravel-migrations
I have a users table having the following schema: Users - id - name - username - password This table contains 10 records and i update the schema using migration. Then I drop the column name and add two columns firstName and lastName the updated users table schema is given...

Worklight 6.2 migration tool connection

oracle,migration,worklight,upgrade
I am working to upgrade Worklight from 5.0.6.2 to 6.2 And am now doing the database upgrade thing. I am stuck when trying to run migration tool as following error is shown "fwlse3401e Failed to connect to source database" It's a local dev oracle express 11g with service name: xe...

django 1.7 relation “auth_user” does not exist in migrate but fine in tests

python,django,migration
I'm updating a django-1.5 project to django-1.7.2 and when migrating I keep getting "relation "auth_user" does not exist". However if I run python manage.py test -v2 to see the process of database creation/migration Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying subscription.0001_initial... OK Migrations turn out fine. Am...

How to migrate Realm object that hasn't been stored?

ios,swift,migration,realm
I have an object that I haven't stored anywhere (yet). Even without creating a Realm for it, the app crashes saying this object requires a migration after I've modified it. I've tried this (in method func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool): RLMRealm.setSchemaVersion(1, forRealmAtPath: RLMRealm.defaultRealmPath()) { (migration: RLMMigration!,...

Postgres: Migrate data with FKs to multi-database

sql,postgresql,foreign-keys,migration
I currently have a single DB with data from a number of clients. I have been tasked with writing a script that splits the data up into separate DBs per client (each DB will have the same schema). For the purpose of example, let's say the DB is filled with...

PG::UndefinedColumn: ERROR: column sections.row_order does not exist

mysql,ruby-on-rails,ruby-on-rails-3,migration
<% @course.sections.rank(:row_order).each do |section| %> <br /><br /> <div class="section"> <h3> <%= section.title %> </h3> I am getting undefined column for that row order in section. Here is my model for section... class Section < ActiveRecord::Base belongs_to :course has_many :lessons include RankedModel ranks :row_order, :with_same => :course_id end Here is...

Can create_join_table only take 2-3 arguments?

ruby-on-rails,ruby,migration
I've tried a bunch of variations of this migration file: class CombineTags < ActiveRecord::Migration def change create_join_table :habits, :valuations, :quantifieds, :goals do |t| t.timestamps null: false end t.index :habits, [:habit_id, :tag_list], :valuations, [:valuation_id, :tag_list], :quantifieds, [:quantified_id, :tag_list] :goals, [:goal_id, :tag_list] end end but I keep getting this error upon running...

Laravel Migrations - Issues while creating timestamps

php,mysql,laravel,migration
I am trying to run migrations on my Laravel instance. They are just the default migrations (users and password resets) but when it tries to make the timestamps it throws this error: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created_at' (SQL: create table ` users`...

NameError: name 'Usuario' is not defined

python,django,migration,models
I have this error in django when i try to do "makemigrations" Code: from django.db import models from django.contrib.auth.models import User # Create your models here. class Usuario(models.Model): user = models.OneToOneField(User) amigos = models.ManyToManyField(Amigo) class Amigo(models.Model): usuarios = models.ForeignKey(Usuario) class Regalo(models.Model): nombre = models.CharField(max_length=100) enlace_compra = models.CharField(max_length=200) amigo_encargado = models.OneToOneField(User)...

laravel 5 primary key column not named id

migration,laravel-5
Im trying to migrate our current application over to Laravel-5. This app has quite a big structure with many tables, but way less than half of the tables has a primary key called id. Is this a problem or can you manualy specify what you want your primary key to...

Generate a rails model with an array of floats as attribute

ruby-on-rails,model,migration
Disclaimer: I am a newbie. I am trying to create a User and save it to the database with a location attribute. I want the location to be an array with the latitude and longitude of the user, which I want to pull from the browser using "navigator.geolocation.GetCurrentLocation()". I created...

Add comment to SQL table

migration,yii2
How can I add comment for specific SQL-table in Yii2 migration? SQL code: ALTER TABLE my_table COMMENT 'Hello World' I wand to do in within a migration in ORM way...

Migrating Atmosphere 1.0.0 to 2.X.X breaks Async communication for Internet Explorer

internet-explorer,internet-explorer-8,migration,richfaces,atmosphere
Recently I migrated my application from using Atmosphere 1.0.0 to 2.2.4 (along with RichFaces 4.5.3.Final). The problem that is now showing occurs only using Internet Explorer 8. When I enter the page such log is produced: 27-04-2015 13:16:55 AsynchronousProcessor [ERROR] Invalid request state. AsyncContext#startAsync not supported. Make sure async-supported is...

EJS layouts on express 4.x (migration)

node.js,express,migration,ejs
I had a testing app running on express 3.x with EJS for the views (instead of jade), I was able to create layouts and use them accordingly. But recently migrated to express 4.x and all is well except the layouts. It seems that the layouts are not being loaded at...

Mongodb find query optimization

javascript,mongodb,migration
I'm writing a migration script to update some fields of a collection, say collection2. In our collections, we store Japanese dates with following format in each document: "date" : { "era" : 4, "year" : 25, "month" : 11, "day" : 25 }// i.e `25-11-2014` Now I'm looking for an...

Using Spring 4.0.9 with myBatis 2.3.5

java,spring,migration,mybatis,ibatis
I have a Project with framework Spring 3.0.3, myBatis 2.3.5. I want to migrate to Spring 4.0.9. The problem i am facing is spring have stopped supporting myBatis from 3.0.5. The myBatis part is heaving used so cannot shift to hibernate or even myBatis 3.x. Any Help would be appreciated.

GWT: How to migrate to gwt 2.7.0 from gwt 2.6.0

gwt,migration
I am using GWT 2.6.0 right now and I would like to change my SDK version to 2.7.0. Eclipse does not have 2.7.0 now, so I downloaded the newest SDK manually and changed the SDK setting in project property. But I cannot make it work, the compiler complains: [ERROR] An...

change an integer to bigint in ROR

ruby-on-rails,activerecord,command-line,migration,heroku-postgres
I need to change my table integers to BIGINT's I am using RoR and SQLLite. How can I modify existing table fields from Int to BigInt through command line? ...

Youtube v2 to v3 migration in Android apps

android,youtube,youtube-api,migration
My Android application was using the youtube v2 api to get the list of videos of a public profile like this one: https://www.youtube.com/user/USER_PROFILE_NAME/videos?view=0&flow=list I got the free json response and used it to get the links and video titles. Now api v2 gets deprecated and from what I see there...

why is Doctrine creating one big migration?

php,symfony2,doctrine2,doctrine,migration
I have a couple entities that I created: User namespace App\Models; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="users") */ class User { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue */ protected $id; /** * @ORM\Column(type="string", length=32, nullable=false) */ protected $firstName; /** * @ORM\Column(type="string", length=32,...

How add Check Constraints migration Codeigniter PostgreSQL

php,codeigniter,migration
I'm trying to do the following migration table below: SQL: CREATE TABLE ( product_no integer, name text, price numeric positive_price CHECK (price> 0) ); PHP: $this->dbforge->drop_table('products', true); $this->dbforge->add_field(array( 'product_no' => array( 'type' => 'INTEGER' ), 'name' => array( 'type' => 'VARCHAR', 'constraint' => '20' ), 'price' => array( 'type' =>...

How to delete django migrations after squashing them?

django,migration,django-migrations,squash
Django documentation says we could delete migrations after squashing them: You should commit this migration but leave the old ones in place; the new migration will be used for new installs. Once you are sure all instances of the code base have applied the migrations you squashed, you can delete...

java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; after migrating to JSF 2.2

jsf,migration,jsf-2.2,nosuchmethoderror
I am getting the below exception after migrating to JSF 2.2. Specifically, I'm upgrading Mojarra 2.1.17 to Mojarra 2.2.8. java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; at org.primefaces.renderkit.RendererUtils.renderPassThroughAttributes(RendererUtils.java:79) at org.primefaces.renderkit.CoreRenderer.renderDynamicPassThruAttributes(CoreRenderer.java:119) at org.primefaces.renderkit.CoreRenderer.renderPassThruAttributes(CoreRenderer.java:114) at...

Call artisan in laravel with migrate:make

php,laravel,migration,artisan
Run artisan commands from routes or controller. If you want run your migrations make: Artisan::call('migrate:make'); but have not migrate name. How to run command : "migrate:make NameMigrate" and use Artisan::call...

Is there any difference in using up/down vs change/reversible methods in Rails migrations?

ruby-on-rails,migration
In a Rails migration, does it make any difference, if I do this: def up foo end def down bar end or this: def change reversible do |direction| direction.up { foo } direction.down { bar } end end ? I think that it's better to use the change method if...

WAS 6 to WAS 8.5 migration

migration,websphere,server,ibm-was
I need to migrate my application to WAS 6.1 to WAS 8.5.5. I would need list of things to be taken care before migration and what are all the major changes involved. I googled and sufficient informations I couldnt get. Can some one please help me on this ?...

Drupal to Liferay Migration

drupal,migration,liferay
I want to migrate my existing Drupal sitea (about 600 pages) to Liferay. What will be the bestway? Do I perform DB to DB Migration? If yes, how it can be done? Is there any solution provider who is giving this service?...

Core data migration issue - Its crashing the application

ios,core-data,migration
I have used cord data in my application, its already uploaded and live on app store. Now I want to upload a new version with some changes in core data but application is crashing with following error - reason = "Can't find model for source store"; My code is already...

Heroku migration to Cedar - “ERROR: No application configured, nothing to run”

ruby-on-rails,heroku,migration,puma,cedar
I am trying to migrate my old Heroku Ruby on Rails application from Bamboo to Cedar stack. I am using Ruby 1.8.7, Rails 2.3.11 and Postgres database. I do everything as described on https://devcenter.heroku.com/articles/cedar-migration but by application start I get the message in heroku log: "ERROR: No application configured, nothing...

Can multiple Gitlab projects use the same Git repository?

git,svn,migration,gitlab
I've been investigating moving from SVN to Git so that we can make use of Gitlab. One thing I'm not sure about though; Can we point multiple projects in Gitlab at a single repository? The documentation says: Projects A GitLab project roughly corresponds to a single git repository. Every project...

Edit commited migration in rails

ruby-on-rails,ruby,git,migration
In my project I have migrations like: 1. 20141122184434_add_column_a_to_b 2. 20141208235304_delete_data_from_b 3. 20141217011359_add_table 4. 20141218183503_remove_column_b_from_c And they are already commited for my develop branch (but not on master and production). After few weeks (and adding more migration) it was found that migration B contains error, and it deletes important data,...

Laravel environment config not loading, migration fails - SQLSTATE[HY000] [2002] No such file or directory

php,laravel,laravel-4,migration,database-migration
My app/config/database.php has been setup like this: 'mysql' => array( 'driver' => 'mysql', 'host' => getenv('DB_HOST'), 'database' => getenv('DB_NAME'), 'username' => getenv('DB_USER'), 'password' => getenv('DB_PASS'), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ), I have updated my env detection code like this in bootstrap/start.php: $env = $app->detectEnvironment(function() {...

Meteor -> percolatestudio/meteor-migrations — not working for version 0

meteor,migration
Trying to get this migrations plugin working for meteor project: percolatestudio/meteor-migrations Migrating up and down between various migration versions seems to work fine when greater than 0. However when trying to migrate back to 0 (clean slate), it doesn't seem to work. Nothing happens --- no errors, and it still...

Laravel 5 foreign key migration error

php,oracle,laravel,migration,laravel-5
i have an issue when i try to reset my migrations. I am using oracle sql so when the problem appeared the first think i've done i emptied the database now in my sqldeveloper i don't see the tables but if i run tinker every table is created. When i...

How to delete only the table relationed

sql,laravel,migration
I know how to create the migrations with laravel 5.1 and I have the following code public function up() { Schema::create('articulos', function (Blueprint $table) { $table->increments('id'); $table->string('title'); $table->string('content'); $table->integer('categoria_id')->unsigned(); $table->integer('creador_id')->unsigned(); $table->string('slug', 32); $table->timestamps(); }); Schema::table('articulos', function($table) { $table->foreign('categoria_id')->references('id')->on('categorias');...

GitLab import 6.8.1 into 7.10.4

migration,gitlab,user-accounts
We have a productive GitLab 6.8.1 running. I've set up a parallel VM with GitLab 7.10.4. Now I want to move all data from the old installation to the new one. I've already found a way how to move the bare repositories, but I have no clue how to import...

How to override max length of username in Django by creating a custom model

python,django,inheritance,migration,maxlength
I have a problem. I'm using Django 1.7, and have already made a custom user model, that inherits Django's abstract user like this: class CustomUser(AbstractUser, BaseModel): Now they say in here Django-ticket, that I could avoid the problem of username's max_length being 30, by creating a custom user. Well, I...

Scanload / loadstate USMT Gives out Error 26 with the custom XML i created that should save additional data, error says element content missing

xml,migration,mxe
Im in the middle of a migration that seems to create problems. I want to migrate all User Data with everything and use USMT for it. Per default most of the User is backed up and that works also properly. Because i also want to save some other Informations for...

Should we use jQuery with AngularJS? [closed]

javascript,jquery,angularjs,migration
Our website is currently using jQuery library and getting a traffic of about 1 million monthly. We want to include API centric approach, so decided to move to Javascipt MVC and has choosen angularJS for it because of some reasons. Now my question is, should I use jquery on the...

How to tell git-svn that files are NOT binary

git,svn,migration,git-svn,gitattributes
I am converting a large SVN-repo (~28k Commits) into Git using git-svn. When the process was through (~ 1 1/2 weeks) I encountered some .ps1-files being treated as binary in the diffs. I have commited a .gitignore file on master (after the conversion of course) that tells git to treat...

Laravel - Third Party Packages interfering in Migration

php,laravel,migration,laravel-5
After searching a lot I came here. I am a newbie to laravel. From last 2 hours I am stuck on a bug. One of the third party package Thujohn/Twitter is interfering in my migrations. I had done migrations several times before. But due to some reasons I decided to...

Cloning a GIT branch to another repositories GIT branch?

git,bash,github,migration,.git-info-grafts
I have two GIT repositories, one for work and one for independent development. My company expressed interest in a project I've been working on and would like me to migrate that branch (master) into a new branch on their repo (Features/Dynamo). I have created a migrator in the past but...

Calling LoadLibraryEx on ISAPI filter in IIS

configuration,coldfusion,migration,iis-7.5,coldfusion-11
I am facing a strange issue while configuring ColdFusion with IIS. I was initially used CF 10 and due to the project needs, I have uninstalled CF10 and installed CF11. After that, I am getting an error HTTP Error 500.0 - Internal Server Error Calling LoadLibraryEx on ISAPI filter "C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll"...

THREE.js Migration r60 to r70: now cannot write: mesh.position = myVector3()

three.js,position,migration,mesh
I am migrating a THREE.js app from r60 to r70. Amongst other changes I notice that r60 constructs of the following form no longer work in r70. mesh.position.set(0,0,0); myVector3 = new THREE.Vector3 (100,200,300); mesh.position = myVector3; This applies to meshes, pointLights, presumably to all Object3D's but I havent tested further....

How can I write migrations to insert records using phinx?

php,mysql,migration
I'm using phinx to handle the migration on a new project, now I need to create a new table and insert some rows to it, I have: $tableStatus = $this->table('status'); $tableStatus->addColumn('code', 'string'); $tableStatus->addColumn('description', 'string'); $tableStatus->save(); This add the new table but I couldn't find at the documentation how to insert...

adding and removing Realm.Object during a migration

swift,migration,realm
I am doing a migration which requires removing objects from the realm and replacing them with a different type. In short, I used to have a single type, and am now creating a hierarchy, so BaseItem now needs to be a DerivedItem. I'm not sure the best way to accomplish...

How to create assocations in Sequelize migrations?

node.js,migration,sequelize.js
I am using migrations to create entities. Naturally, some have relations between them. Until now, by using sync(true), I enjoyed the benefit of Sequelize implementing the relations for me at the database level. How do I express new relations in a migration? One-to-many: Should I be taking care of the...

How can i hook into django migrations for django 1.8

python,django,migration
I am using django 1.8. Now i need to add some custom fields based permisions so i have created a YML file from python models like this description: permissions: ['ADMIN'] award: permissions: ['USER'] Its working fine but my issue if some chnages the field names or reomves some field then...