2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Laravelでneo4jを使う④マイグレーション

Posted at

#事前準備
・app/database/labelsフォルダの作成

$ php artisan neo4j:make:migration create_race_label

$ php artisan neo4j:migrate

コマンド  説明
$label->unique('email') プロパティに一意の制約を追加する
$label->dropUnique('email') プロパティから一意の制約を削除する
$label->index('uuid') プロパティにインデックスを追加する
$label->dropIndex('uuid') プロパティからインデックスを削除しています

コマンド 説明

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?