Added ANSI parsers and rendering ANSI frames
This commit is contained in:
@@ -16,19 +16,19 @@ class CreateFramemeta extends Migration
|
||||
$this->down();
|
||||
|
||||
Schema::create('framemeta', function (Blueprint $table) {
|
||||
$table->integer('frame_id')->primary();
|
||||
$table->string('r0')->default('*');
|
||||
$table->string('r1')->default('*');
|
||||
$table->string('r2')->default('*');
|
||||
$table->string('r3')->default('*');
|
||||
$table->string('r4')->default('*');
|
||||
$table->string('r5')->default('*');
|
||||
$table->string('r6')->default('*');
|
||||
$table->string('r7')->default('*');
|
||||
$table->string('r8')->default('*');
|
||||
$table->string('r9')->default('*');
|
||||
$table->integer('frame_id')->primary();
|
||||
$table->string('r0')->default('*');
|
||||
$table->string('r1')->default('*');
|
||||
$table->string('r2')->default('*');
|
||||
$table->string('r3')->default('*');
|
||||
$table->string('r4')->default('*');
|
||||
$table->string('r5')->default('*');
|
||||
$table->string('r6')->default('*');
|
||||
$table->string('r7')->default('*');
|
||||
$table->string('r8')->default('*');
|
||||
$table->string('r9')->default('*');
|
||||
|
||||
$table->foreign('frame_id')->references('id')->on('frames');
|
||||
$table->foreign('frame_id')->references('id')->on('frames');
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class FrameAddClear extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('frames', function (Blueprint $table) {
|
||||
$table->boolean('cls')->default(TRUE);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('frames', function (Blueprint $table) {
|
||||
$table->dropColumn('cls');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user