add columns field to revision, remove index_column

pull/26/head
Ondřej Hruška 6 years ago
parent dc9acbf9d7
commit b9ccdb6f27
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 3
      app/Http/Controllers/TableController.php
  2. 5
      database/migrations/2018_07_08_193600_create_revisions_table.php

@ -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');

Loading…
Cancel
Save