Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- public function up()
- {
- Schema::create('t_pesanan', function (Blueprint $table) {
- $table->string('id',40);
- $table->string('customer',40);
- $table->string('paket',40);
- $table->integer('berat');
- $table->integer('grand_total');
- $table->string('status_pesanan',40);
- $table->string('status_pembayaran',40);
- $table->timestamps();
- $table->primary('id');
- $table->foreign('customer')->references('id')->on('customer')->onDelete('restrict');
- $table->foreign('paket')->references('id')->on('paket')->onDelete('restrict');
- $table->foreign('status_pesanan')->references('id')->on('status_pesanan')->onDelete('restrict');
- $table->foreign('status_pembayaran')->references('id')->on('status_pembayaran')->onDelete('restrict');
- $table->engine = 'InnoDB';
- });
- }
- ....
Add Comment
Please, Sign In to add comment