modificacion tabla narrativa

This commit is contained in:
Christian Dacid Sullca Puma 2022-10-10 15:32:12 -05:00
parent ef8dc455f7
commit 3079477eb0

View File

@ -15,13 +15,12 @@ public function up()
{ {
Schema::create('narrativas', function (Blueprint $table) { Schema::create('narrativas', function (Blueprint $table) {
$table->id(); $table->id();
$table->integer('year'); $table->string('semestre', 255);
$table->string('semestre',255); $table->mediumText('cabecera');
$table->mediumText('cabecera'); $table->mediumText('contenido');
$table->mediumText('contenido'); $table->foreignId('id_estandar')
$table->foreignId('id_estandar') ->constrained('estandars')
->constrained('estandars') ->onDelete('cascade');
->onDelete('cascade');
$table->timestamps(); $table->timestamps();
}); });
} }