creating tables
This commit is contained in:
@@ -24,7 +24,7 @@ class CreateRevisionsTable extends Migration
|
||||
$table->jsonb('columns');
|
||||
|
||||
// author's note describing what has been changed
|
||||
$table->text('note');
|
||||
$table->text('note')->nullable();
|
||||
|
||||
$table->foreign('ancestor_id')->references('id')->on('revisions')
|
||||
->onDelete('set null');
|
||||
|
||||
@@ -21,9 +21,9 @@ class CreateTablesTable extends Migration
|
||||
$table->unsignedInteger('revision_id')->index(); // active revision
|
||||
$table->string('name')->index(); // indexable
|
||||
$table->string('title')->index(); // indexable
|
||||
$table->text('description');
|
||||
$table->text('license');
|
||||
$table->text('source_link');
|
||||
$table->text('description')->nullable();
|
||||
$table->text('license')->nullable();
|
||||
$table->text('origin')->nullable();
|
||||
|
||||
$table->foreign('owner_id')->references('id')->on('users')
|
||||
->onDelete('restrict'); // user deleting their account deletes owned tables
|
||||
|
||||
@@ -23,7 +23,7 @@ class CreateProposalsTable extends Migration
|
||||
$table->unsignedInteger('revision_id')->index(); // parent revision (applying it to a different revisions may cause conflicts)
|
||||
$table->unsignedInteger('author_id')->index();
|
||||
|
||||
$table->text('note');
|
||||
$table->text('note')->nullable();
|
||||
|
||||
$table->jsonb('changes'); // the actual meat of the changeset is stored here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user