Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Schema::create('department', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name')->comment('اسم الأدارة');
- $table->integer('dep_parent')->unsigned()->comment('الأدارة الرئيسية');
- $table->timestamps();
- });
- DB::statement("ALTER TABLE department COMMENT 'جدول الادارات'");
- DB::statement("ALTER TABLE department ADD FOREIGN KEY (dep_parent) REFERENCES department(id)");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement