migrate

Migrate Django development database (.sql3) to Heroku

情到浓时终转凉″ 提交于 2019-12-03 01:48:32
How does one migrate their Django .sql3 development database to heroku? Per here , and here I tried: heroku pg:psql --app sblic < database.sql3 but my Django admin shows no new uploads (even after syncdb/migrate/ or collectstatic ecoe Perhaps there may be a way to directly upload an sql3 file to Heroku, but I went with the path of clearest certainty (convert local sql3 db to postgre db and upload a dump of postgre db to Heroku via pgbackups tool ): Create a dump of your sql3 database as a json file With PostgreSql installed and with its bin directory in the Path environment variable, create a

Meteor how to perform database migrations?

£可爱£侵袭症+ 提交于 2019-12-02 16:41:34
How do you perform database migrations with Meteor? With Ruby on Rails there is ActiveRecord::Migration. Is there an equivalent mechanism in Meteor? For example, I make an app with some user data. I'm storing the data in Mongo using a JSON format. The app changes, and the JSON database schema needs to change. I can write a migration method to change the schema, however, I only want this to run if the server database is out of date. There's nothing built in for this. What I've done myself for now is similar to how Rails works, but as part of startup instead of a separate task. First create a

Errors after django 1.7 migration and reset

一个人想着一个人 提交于 2019-12-02 10:16:17
问题 *This is my first time learning back-end development, so please bear with me. I am working on an app named "Taskmanger" with Django 1.7. After performing inital migration with following commands. python manage.py makemigrations Taskmanager python manage.py migrate I got the following error when I tried to run runserver command. File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module

Rails Executing migration ArgumentError

女生的网名这么多〃 提交于 2019-12-02 07:13:41
问题 I'm having a strange problem executing rake db:migrate == 20141127213559 CreateMovies: migrating ===================================== -- create_table(:movies) -> 0.0033s == 20141127213559 CreateMovies: migrated (0.0034s) ============================ rake aborted! StandardError: An error has occurred, this and all later migrations canceled: wrong number of arguments (1 for 0) ArgumentError: wrong number of arguments (1 for 0) Tasks: TOP => db:migrate (See full trace by running task with -

Errors after django 1.7 migration and reset

纵饮孤独 提交于 2019-12-02 05:17:42
*This is my first time learning back-end development, so please bear with me. I am working on an app named "Taskmanger" with Django 1.7. After performing inital migration with following commands. python manage.py makemigrations Taskmanager python manage.py migrate I got the following error when I tried to run runserver command. File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named adminTaskmanager and deleting migration files Then, I deleted the migration folder and files

Rails Executing migration ArgumentError

ε祈祈猫儿з 提交于 2019-12-02 05:06:43
I'm having a strange problem executing rake db:migrate == 20141127213559 CreateMovies: migrating ===================================== -- create_table(:movies) -> 0.0033s == 20141127213559 CreateMovies: migrated (0.0034s) ============================ rake aborted! StandardError: An error has occurred, this and all later migrations canceled: wrong number of arguments (1 for 0) ArgumentError: wrong number of arguments (1 for 0) Tasks: TOP => db:migrate (See full trace by running task with --trace) What I did was: rails generate model Movie And then edit the migration CreateMovies class

Laravel: Base table or view not found: 1146 Table 'database.pages doesn't exist

微笑、不失礼 提交于 2019-12-01 15:42:27
I'm working on a CMS and I have a little problem with my migrations. I added a new migration file and I wanted to add that one. That didn't work so I ran this bit: php artisan migrate:reset After that I ran this bit: php artisan migrate:install php artisan migrate And now I get this error: {"error":{"type":"Illuminate\\Database\\QueryException","message":"SQLSTATE[42S02]: Base table or view not found:1146 Table 'cms.pages' doesn't exist (SQL: select * from `pages`)" The error kinda tells me that it can't find the database, because that's true. I also have a command that runs the migrate and I

Laravel: Base table or view not found: 1146 Table 'database.pages doesn't exist

江枫思渺然 提交于 2019-12-01 14:38:37
问题 I'm working on a CMS and I have a little problem with my migrations. I added a new migration file and I wanted to add that one. That didn't work so I ran this bit: php artisan migrate:reset After that I ran this bit: php artisan migrate:install php artisan migrate And now I get this error: {"error":{"type":"Illuminate\\Database\\QueryException","message":"SQLSTATE[42S02]: Base table or view not found:1146 Table 'cms.pages' doesn't exist (SQL: select * from `pages`)" The error kinda tells me

Migrating MySQL UTF8 to UTF8MB4 problems and questions

五迷三道 提交于 2019-12-01 04:31:33
Im trying to convert my UTF8 MySQL 5.5.30 database to UTF8MB4. I have looked at this article https://mathiasbynens.be/notes/mysql-utf8mb4 but have some questions. I have done these ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; The last one was manually done with 62 tables, one of them gave me this warning 13:08:30 ALTER TABLE bradspelold.games CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci 101289 row(s) affected, 2 warning(s): 1071 Specified key was too long;

Best way to Migrate Anonymous Profile

狂风中的少年 提交于 2019-11-30 19:14:12
Is there an alternate way that migrates all parameters implicit? Or any other advantages. From MSDN : public void Profile_OnMigrateAnonymous(object sender, ProfileMigrateEventArgs args) { ProfileCommon anonymousProfile = Profile.GetProfile(args.AnonymousID); Profile.ZipCode = anonymousProfile.ZipCode; Profile.CityAndState = anonymousProfile.CityAndState; Profile.StockSymbols = anonymousProfile.StockSymbols; //////// // Delete the anonymous profile. If the anonymous ID is not // needed in the rest of the site, remove the anonymous cookie. ProfileManager.DeleteProfile(args.AnonymousID);