Как я выполняю эмулятор Android автоматически от Eclipse?

В PostUsers Модель определяет имя таблицы

class PostUsers extends Model {
    public $table = "post_users";

Обновление:

Не должно

Schema::table('post_users', function (Blueprint $table) {
    $table->integer('post_id')->unsigned();
    $table->integer('user_id');
    $table->foreign('post_id')
        ->references('id')->on('posts')
        ->onDelete('cascade')->unsigned()->index();
});

быть

Schema::create('post_users', function (Blueprint $table) {
    $table->integer('post_id')->unsigned();
    $table->integer('user_id');
    $table->foreign('post_id')
        ->references('id')->on('posts')
        ->onDelete('cascade')->unsigned()->index();
});

Если вы собираетесь создать новую таблицу, вы должны использовать Schema::create

24
задан tshepang 4 February 2014 в 20:26
поделиться

1 ответ

После того как Вы установили ADT, необходимо определить конфигурация запуска ADT для проекта выполнить себя как исполняемый файл Android.

Hello World Android

<час>

Затем не забывайте Для входа Eclipse->Preferences->Run/Debug->Launching.
 “ Launch Operation ” подраздел, выберите “ Always launch the previously launched application ”:

Eclipse launching options

39
ответ дан VonC 28 November 2019 в 23:42
поделиться