update migration

This commit is contained in:
cornernote 2015-08-09 16:57:48 +09:30
parent 66677fb076
commit 41e441b369
2 changed files with 33 additions and 1 deletions

32
README.md Normal file
View File

@ -0,0 +1,32 @@
# Minetest Bower
## Using Heroku
Deploy:
```
git push heroku master
```
Run migrations:
```
heroku run php /app/yii migrate/up --interactive=0
```
View database:
```
heroku pg:psql
```
View logs:
```
heroku logs --tail
```
More info:
https://devcenter.heroku.com/articles/getting-started-with-php

View File

@ -13,7 +13,7 @@ class m150808_000001_create_package extends Migration
'id' => Schema::TYPE_PK, 'id' => Schema::TYPE_PK,
'name' => Schema::TYPE_STRING . '(50) NOT NULL', 'name' => Schema::TYPE_STRING . '(50) NOT NULL',
'url' => Schema::TYPE_STRING . '(255) NOT NULL', 'url' => Schema::TYPE_STRING . '(255) NOT NULL',
'hits' => Schema::TYPE_INTEGER . ' NOT NULL', 'hits' => Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 0',
'bower' => Schema::TYPE_TEXT, 'bower' => Schema::TYPE_TEXT,
'homepage' => Schema::TYPE_STRING . '(255)', 'homepage' => Schema::TYPE_STRING . '(255)',
'description' => Schema::TYPE_STRING . '(140)', 'description' => Schema::TYPE_STRING . '(140)',