54
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

laravelのmigrationファイル命名規則

54
Last updated at Posted at 2016-04-21

この記事は個人ブログに移行しました。最新情報はブログ版をご覧ください。

要点

  • テーブル作成時 — php artisan make:migration create {テーブル名} --create={テーブル名} 例)php artisan make:migration create users --create=users
  • テーブル変更時 — php artisan make:migration modify {テーブル名} {YYYYMMDD} --table={テーブル名} 例)php artisan make:migration modify users 20160128 --table=users 決める...
  • プロジェクトXにて — ある日、usersテーブルにカラムAを追加しました。 php artisan make:migration modify users php artisan migrate(カラムAが追加された) 数ヶ月後、ふたたびusersテーブルにカラムBを追加しました。

もっと詳しく

  • ブログではコード全文や補足資料を継続的に更新しています
  • 気になる点があればコメントください🙌
54
42
4

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
54
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?