[GH-ISSUE #38] Template file limitations #161

Closed
opened 2026-03-07 20:41:43 +03:00 by kerem · 1 comment
Owner

Originally created by @CodingPeak on GitHub (Feb 16, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/38

I'm trying to output the up and down sql code into a CodeIgniter Migrations file. This is a php file with a class with up and down methods.

It looks like the template file can't be used when there's actual PHP code in it. Is there a way past this? Or what is the exact reason this doesn't work?

Idea: how can we make it work? If we can't, note the limitations in the documentation.

Originally created by @CodingPeak on GitHub (Feb 16, 2017). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/38 I'm trying to output the up and down sql code into a CodeIgniter Migrations file. This is a php file with a class with up and down methods. It looks like the template file can't be used when there's actual PHP code in it. Is there a way past this? Or what is the exact reason this doesn't work? Idea: how can we make it work? If we can't, note the limitations in the documentation.
kerem closed this issue 2026-03-07 20:41:43 +03:00
Author
Owner

@jasdeepkhalsa commented on GitHub (Nov 24, 2017):

Hi @CodingPeak,

Please give the idea in #43 a try and let me know if it works. Of course this assumes a similar execute command is supported in CodeIgniter which can just execute the raw SQL produced by DBDiff.

I'm closing this ticket for now, but please re-open if you still think there's some limitation here.

<!-- gh-comment-id:346870110 --> @jasdeepkhalsa commented on GitHub (Nov 24, 2017): Hi @CodingPeak, Please give the idea in #43 a try and let me know if it works. Of course this assumes a similar `execute` command is supported in CodeIgniter which can just execute the raw SQL produced by DBDiff. I'm closing this ticket for now, but please re-open if you still think there's some limitation here.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#161
No description provided.