add columns field to revision, remove index_column

This commit is contained in:
2018-07-21 19:57:47 +02:00
parent dc9acbf9d7
commit b9ccdb6f27
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -51,6 +51,9 @@ class TableController extends Controller
]);
}
// Now we create rows, a revision pointing to them, and the table using it.
return "Ok.";
}
}
@@ -19,8 +19,9 @@ class CreateRevisionsTable extends Migration
$table->unsignedInteger('refs'); // used for reference counting
$table->unsignedInteger('ancestor_id')->index()->nullable(); // parent revision
// a column that can be used as the primary key for a table; possibly a composite column, if using a comma
$table->string('index_column');
// columns specification
// array with: {name, title, type}
$table->jsonb('columns');
// author's note describing what has been changed
$table->text('note');