Docs
CR-SQLite
API Methods
crsql_commit_alter

crsql_commit_alter

For an end to end overview of migrations, see migrations.

crsql_commit_alter must be called after alteration against a crr begun with crsql_begin_alter.

Usage:

SELECT crsql_commit_alter('table_name');

Example:

SELECT crsql_begin_alter('foo');
ALTER TABLE foo ADD COLUMN c TEXT;
SELECT crsql_commit_alter('foo');