Jump to content

Manual talk:Schema changes

About this board

בקש (talkcontribs)

as an extension developer is it my resposibility to generate the sql files? it does not work for me. do i miss somthing?

Jdforrester (WMF) (talkcontribs)

as an extension developer is it my resposibility to generate the sql files?

Yes.

it does not work for me. do i miss somthing?

Possibly, or our instructions aren't good enough. What doesn't work for you? How far do you get?

בקש (talkcontribs)

2 important steps which arent mentioned is the need of a running enviroment of mw (including a valid localsettings file) and run befor composer install. this fixed my issues.

Jdforrester (WMF) (talkcontribs)
בקש (talkcontribs)

why not mention the need of run composer install (without --no-dev)?

Jdforrester (WMF) (talkcontribs)

@בקש: This is a detailed advanced developer instruction page. Basic "install MediaWiki" instructions are out of scope.

בקש (talkcontribs)

Basic "install MediaWiki" instructions use --no-dev flag... which wont work here

Jdforrester (WMF) (talkcontribs)

No? They say docker compose exec mediawiki composer update.

Reply to "Automatic generate?"
Adamw (talkcontribs)

I haven't found a way to express dropping a table using an abstract migration.

Adamw (talkcontribs)

Seems this isn't necessary, it can be done trivially from the update hook:

       $updater->dropExtensionTable( 'cn_known_mobile_carriers' );

Reply to "Drop table?"

Probably better called

1
Kghbln (talkcontribs)

Schema change patches?

Reply to "Probably better called"
There are no older topics