Questions tagged [migrate]

1

votes
1

answer
40

Views

Work on multiple branches with Flask-Migrate

I'm using Flask-Migrate (Alembic) to manage SQLAlchemy database migrations. I'm working on two different branches with different migrations. If I switch branches, I get an error that the migration is not found. If i merge this branches into the parent branch, I need downgrade migration's on both mu...
Anna
1

votes
0

answer
190

Views

Got error while migrating to Android Studio 3.1 Canary 5 Build?

I tried following steps: 1.changed to classpath 'com.android.tools.build:gradle:3.1.0-alpha05' maven { url 'https://maven.google.com/' name 'Google' } and added google() android.enableAapt2=false in gradle.properties 4. android { compileSdkVersion 27 buildToolsVersion '27.0.1' defaultConfig { appli...
Swapnil
1

votes
2

answer
533

Views

in facade.php 221, call to undefined method MySqlBuilder::defaultStringLenght()

in windows command promt full eror it gives same with some php artisan commands C:\xampp\htdocs\jj>php artisan migrate In Connection.php line 664: SQLSTATE[HY000] [1049] Unknown database 'juwelleryjournal' (SQL: select * from information_schema .tables where table_schema = juwelleryjournal and tabl...
1

votes
0

answer
68

Views

I have created a database in laravel and i cant find it on wamp server(php myadmin)

While installing Laravel 5.4 I have given crm_assignment as my database name but when i check it in my phpMyAdmin, i am not able to find it even after using php artisan migrate the error is ' unknown database ' but i could create tables and while configuring the database i found this issue.
Vipul Rao
1

votes
1

answer
1.5k

Views

laravel php artisan migrate Error (timeout)

I am using Laravel 5.6 when I use the command 'php artisan migrate' I get this error (after a minute) : 'Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] Operation timed out (SQL: select * from information_schema.tables where table_schema = MYDATABASE and table_name = migrations)' I have...
khalil
1

votes
1

answer
182

Views

Wordpress pages not loading, after migrating to new host

I've migrated my wordpress sites to a new host. Migrated the database correctly, changed .htaccess and wp-config. The homepage of the site loading perfectly fine. But when I click on any of the pages they aren't working. The directory is .../public_html/directory_name/site/ and when I click a page...
András Tóth
1

votes
1

answer
95

Views

rake db:migrate returning error rake db:migrate

I am getting an error while running rake db:migrate on windows failed to execute: pg_dump -s -x -O -f F:/Installer/humboldt-master/humboldt-master/db/structure.sq l --schema=public --schema=postgis --schema=topology humboldt_dev Please check the output above for any errors and make sure that pg_dump...
Sumit Sharma
1

votes
2

answer
56

Views

Add more column in existing table but it doesn't [duplicate]

This question already has an answer here: Laravel migration add colum issue in existing database table 1 answer $ php artisan migrate In Connection.php line 647: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' alre ady exists (SQL: create table `users` (`id` int unsigned not...
sam sam
1

votes
0

answer
175

Views

Laravel artisan on GoDaddy won't accept any database users, why?

I have a laravel project on my Godaddy shared server and have been working on it for the past several weeks including running many 'php artisan migrate' commands. Inside my .env file I have been using the username and password of the entire cPanel. For security I decided to create a new DB users who...
JamLis
1

votes
2

answer
137

Views

php artisan migrate giving me error in Lumen

When I am trying to migrate in Lumen it giving me following error In Connection.php line 664: could not find driver (SQL: select * from information_schema.tables where t able_schema = authors and table_name = migrations) In Connector.php line 68: could not find driver...
Harish Shinde
1

votes
1

answer
129

Views

Flask SQL Alchemy listens_for decorator

I am trying to create a to-do list application in Flask. I have a lot of experience with Python but am fairly new to the Flask framework. I have 3 models - User, Task and Project and I would like for there to be a default project called Inbox that every user has even before creating any projects th...
J Finer
1

votes
1

answer
127

Views

php artisan migrate is not doing anything

I've installed Laravel 5 and Valet (v2.0.12) using Homebrew on my Macbook Pro (running High Sierra (10.13.6)). I've downloaded a clean Laravel project (laravel new blog). When I try to migrate (sitting in the project folder, then using php artisan migrate), nothing happens. Terminal just sits there...
BlackFayah
1

votes
1

answer
53

Views

Has anyone experienced Laravel Artisan commands returning the opening <?php tag in responses

I have been putting together a web application with the latest version of the Laravel framework (5.7 as of current time) and i have noticed a rather frustrating bug with the Artisan functionality. As an example when i run php artisan migrate i get the below example response:
Chris Harker
1

votes
0

answer
390

Views

Python migrations: No handlers could be found for logger “root”

I'm using Python with Flask, and I'm trying to migrate the database. I run flask db init and I get No handlers could be found for logger 'root'. Here is my main script: import os from flask_migrate import Migrate from app import create_app, db from app.models import User, Role from flask_script impo...
scheebler
1

votes
0

answer
115

Views

What is causing the IntegrityError 'Cannot add foreign key constraint'?

My flask app works absolutely well locally. I am deploying the app to Python Anywhere. The problem is that when I run flask db upgrade in the pythonanywhere bash I get the error below (when I do any db migration and upgrade locally there are no errors): sqlalchemy.exc.IntegrityError: (_mysql_excepti...
Eric O.
1

votes
0

answer
40

Views

ERROR [alembic.env] name 'Text' is not defined upon 'python manage.py db upgrade'

Replicating this link to first test the feasibility of DB migration.. This turns out to be a bug in Alembic, and I tried adding from sqlalchemy.types import Text to no avail. This link is supposed to be a fix, but I cannot quite see which part of the code I can use for my purpose. from alembic impor...
HSL
1

votes
2

answer
53

Views

Problem with ForeignKey. Django migrations

I have to define code.Spatial class like primary_key and codels.LScharacteristic codels.PlannedUsing like foreign key. I face this, when i tried migrate: ProgrammingError: ERROR: the id column specified in the foreign key constraint does not exist. UPD full log: The above exception was the direct c...
Tyomik_mnemonic
1

votes
1

answer
121

Views

Porting Jboss/Seam App to newer versions

I have a Web App running using SEAM 2.0.2 on JBoss 4.2. When I tried to run it using Seam 2.1 and JBoss 5, all sorts of problems arised. Is there a porting guide available for this scenario that you're aware of ? Thanks.
1

votes
2

answer
901

Views

TFPT unshelve & Migrate: What is the Base version for merging?

I am trying to use tfpt unshelve /migrate to unshelve my shelveset on to a different branch. When it does the unshelve, it also attempts to merge the file with the file in the target branch. I do not understand where its getting the base version of this file. Can anyone tell me what version is ba...
TheSean
1

votes
1

answer
602

Views

Copy data from a table to another one has different structure

I have two tables with different structure: TableSource: intId(not null), txtSummary, strDetail TableDesc: guidId(not null), guidFK(not null), Name, Detail I want to migrate data from two fields of tableSource(txtSummary, strDetail) to two fields of tableDesc(Name, Detail). guidId is auto generation...
Kernel
1

votes
1

answer
818

Views

Need Help - Flaw with stsadm migrateuser command

We have a SharePoint farm with a mixed set of users from two domains (Let's say A and B). Some of the users are being added with their A domain accounts and some with their B domain identity. We now now need to decommission one of the domain (B) and need all the B domain users to be replaced with th...
zeppy
1

votes
2

answer
516

Views

disabled textbox

i hv written this piece of code. but it is for html checkbox and txtbox. i want to hv the same functionality with asp.net txtbox and checkbox.how to do it? $(document).ready(function() { var checkbox = $('#notify'); var textfield = $('#notifyemailaddress'); checkbox.click(function() { if (checkbox.i...
koin
1

votes
1

answer
1.1k

Views

rake db:migrate returns “rake: Is a directory”?

I've been searching for the answer to this question for a week, but haven't found one. I'm running Mac OS 10.5.8 if that's relevant. I'm trying to do the Peepcode tutorial 'Meet Rails 3' but when I run the command line user$ rake db:migrate I get the following error message: /usr/local/lib/ruby/ge...
Josh
1

votes
2

answer
3k

Views

Migrating Silverstripe CMS system from one server to another

Im relatively new to silverstripe cms and Im trying to move a site to a new host. I followed all the instructions I could find on their official forums but to no avail. Here is what I mean. Here you can see what the site should look like http://www.efekto.co.za But this is what it looks like after I...
n4rzul
1

votes
1

answer
873

Views

how to convert an existing gwt application in eclipse to maven project

is there any reference website or tutorial? I see some website for migrate java project to maven project, some website for new gwt application using maven, but no website for migrate existing gwt application in eclipse project to maven project.
user1169587
1

votes
2

answer
625

Views

Migrating Wordpress Images to Drupal with Migrate 2.4

I'm having a time migrating images from Wordpress to Drupal with the Migrate 2.4 module. Here are my mappings: $this->addFieldMapping('field_image','images'); $this->addFieldMapping('destination_file', 'images'); $this->addFieldMapping('field_image:source_dir') ->defaultValue('/Users/grafa/htdocs/wo...
geografa
1

votes
2

answer
990

Views

Moving/copying one remote database to another remote database

I'm using heroku to deploy my app. So far, I've been using a development version of my app, and seeding some data into it. I also have a production version set up on heroku. Both apps are using a mysql database hosted with ClearDB to store the data. I simply want to move the data from the developmen...
Lev Dubinets
1

votes
1

answer
270

Views

Django ManyToMany Through not syncing or migrating

I have this model (truncated here for brevity): class Meal(models.Model): host = models.ForeignKey(User, related_name='cooking') cost = models.IntegerField(default=1) summary = models.CharField(max_length=1024, default='A good dinner') diners = models.ManyToManyField(User, through='Attendance', rela...
KindOfGuy
1

votes
1

answer
591

Views

How to migrate from old dojo require to the new dojo AMD loader?

i want to migrate from the old dojo.require loader to the new AMD loader so i changed this: dojo.require('dojo._base.xhr'); dojo.require('dojox.mobile.parser'); dojo.require('dojox.mobile'); dojo.require('dojox.mobile.ScrollableView'); dojo.require('dojox.mobile.TabBar'); dojo.require('dojox.mobile....
user2219190
1

votes
1

answer
283

Views

Bundle Exec Rake DB Migrate Error

I have been getting this error when I run bundle exec rake db:migrate for a basic RoR website. I am a beginner and found similar errors on this site and Treehouse but nothing with the specific second half of this error (from the NOT NULLC onward). I am still not sure how to resolve this - can anyone...
user2603139
1

votes
1

answer
487

Views

Mute jQuery Migrate in Ruby on Rails test environment

Our rails project receives a lot of JQMIGRATE message when running tests, eg: JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute JQMIGRATE: jQuery.browser is deprecated Obviously it would be good to fix them, but they seem to be due to other gems anyway. I've seen reference to...
David Cook
1

votes
1

answer
92

Views

How to migrate an Oracle database

Sorry if my question has already been asked but I couldn't find how to make it. I created an Oracle database in a server and I would like to generate a script in order to copy it to a different server. I would like to copy everything (tables, data, thriggers, sequences...) Does anyone have a link on...
Thomas Carlton
1

votes
1

answer
4k

Views

Export Test Cases including Steps & Results from Rally to TFS

I would like to export test cases (including steps & expected results) from Rally to TFS. As of now, i see we can export only test cases using plug in or Rally-TFS connector.
user3458223
1

votes
2

answer
1.6k

Views

Cant create table in laravel

i have this issue that i dont know exactly migration and seed db working in laravel (php artisan) and i have this model : use Illuminate\Auth\UserInterface; class User extends Eloquent implements UserInterface { public function getAuthIdentifier() { return $this->getKey(); } public function getAuthP...
ᴀʀᴍᴀɴ
1

votes
2

answer
1.1k

Views

php artisan make:migration AppServiceProvider not found LARAVEL 5

I'm new to Laravel 5 and I'm trying to do php artisan make:migration create_projects_and_tasks_tables --create='projects' and I got this error: [Symfony\Component\Debug\Exception\FatalErrorException] Class 'dodong\Providers\AppServiceProvider' not found anyone has ideas what's wrong with this one? a...
Juliver Galleto
1

votes
3

answer
2k

Views

Laravel migration error SQLSTATE[42000]

I have a couple of Laravel migrations. 1-create_countries_table` Schema::create('countries', function(Blueprint $table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); 2-create_cities_table Schema::create('cities', function(Blueprint $table) { $table->increments('id');...
1

votes
2

answer
278

Views

Migrating Nexus repository manager

I want to migrate Nexus to a new server. I know this can be done relatively easy by copying the data and program directory, but I would like to keep up the old server for a while, so people can still use the old server and have time to update their build scripts, etc. How can I keep both servers in...
Andreas5
1

votes
1

answer
1.4k

Views

Import data from CouchDB to Sql Server

Is there a way to export data from couchDB to Sql Server ? We tried with SSiS using http connection manager, JSON component source etc. But the problem is that couchDB has some security and we can't retrieve data info. We tried installing their certificates no success. Any other suggestions?
Žan Črnivec
1

votes
2

answer
2k

Views

yii migrate command doesn't work with postgresql database

I installed Yii 2 advanced template. 'yii migrate' command in CMD works perfectly with the default MySQL database, it populates the database with the tables migration and user as expected (see step 3 explained here: https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installati...
tuncalik
1

votes
1

answer
1k

Views

Solution To “Could not find driver” & “can't connect to local MYSQL server through socket” - Laravel

Hi All, Since I'm a newbie to laravel. First time coming to LARAVEL. I Faced lots of problem regarding command like 'php artisan migrate'. Error Like, [PDOException]: Could not find driver [PDOException]: Can't Connect to local MYSQL server through socket. I was searching the solution like anything...
Nana Partykar

View additional questions