Skip to content

Commit

Permalink
migrate: support transition from generated to regular column
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed May 27, 2024
1 parent 7cfe959 commit 4c41834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn migrateObjects(db: *Session, pristine: *Session, kind: []const u8) !void {
// new block so it gets deinitialized and we can then drop and rename
// the temp table
{
var stmt = try db.prepare(dsl.raw("SELECT GROUP_CONCAT(name) FROM (SELECT name FROM pragma_table_info(?) INTERSECT SELECT name FROM pragma_table_info('temp'))", .{obj.name}));
var stmt = try db.prepare(dsl.raw("SELECT GROUP_CONCAT(name) FROM (SELECT name FROM pragma_table_xinfo(?) INTERSECT SELECT name FROM pragma_table_info('temp'))", .{obj.name}));
defer stmt.deinit();

_ = try stmt.step();
Expand Down

0 comments on commit 4c41834

Please sign in to comment.