MOBILE-3651 question: Install question db tables
parent
6134704fb2
commit
08b0b4e30f
|
@ -34,6 +34,7 @@ import { CoreCommentsModule } from './comments/comments.module';
|
|||
import { CoreSitePluginsModule } from './siteplugins/siteplugins.module';
|
||||
import { CoreRatingModule } from './rating/rating.module';
|
||||
import { CoreSharedFilesModule } from './sharedfiles/sharedfiles.module';
|
||||
import { CoreQuestionModule } from './question/question.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -57,6 +58,7 @@ import { CoreSharedFilesModule } from './sharedfiles/sharedfiles.module';
|
|||
CoreSitePluginsModule,
|
||||
CoreRatingModule,
|
||||
CoreSharedFilesModule,
|
||||
CoreQuestionModule,
|
||||
],
|
||||
})
|
||||
export class CoreFeaturesModule {}
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
// limitations under the License.
|
||||
|
||||
import { NgModule, Type } from '@angular/core';
|
||||
import { CORE_SITE_SCHEMAS } from '@services/sites';
|
||||
import { CoreQuestionBehaviourDelegateService } from './services/behaviour-delegate';
|
||||
import { QUESTION_SITE_SCHEMA } from './services/database/question';
|
||||
import { CoreQuestionProvider } from './services/question';
|
||||
import { CoreQuestionDelegateService } from './services/question-delegate';
|
||||
import { CoreQuestionHelperProvider } from './services/question-helper';
|
||||
|
@ -26,9 +28,12 @@ export const CORE_QUESTION_SERVICES: Type<unknown>[] = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
imports: [],
|
||||
providers: [],
|
||||
exports: [],
|
||||
providers: [
|
||||
{
|
||||
provide: CORE_SITE_SCHEMAS,
|
||||
useValue: [QUESTION_SITE_SCHEMA],
|
||||
multi: true,
|
||||
},
|
||||
],
|
||||
})
|
||||
export class CoreQuestionModule {}
|
||||
|
|
|
@ -19,7 +19,7 @@ import { CoreSiteSchema } from '@services/sites';
|
|||
*/
|
||||
export const QUESTION_TABLE_NAME = 'questions';
|
||||
export const QUESTION_ANSWERS_TABLE_NAME = 'question_answers';
|
||||
export const SITE_SCHEMA: CoreSiteSchema = {
|
||||
export const QUESTION_SITE_SCHEMA: CoreSiteSchema = {
|
||||
name: 'CoreQuestionProvider',
|
||||
version: 1,
|
||||
tables: [
|
||||
|
|
Loading…
Reference in New Issue