hunk.code_window:     table: test
     type: untrack_table
   `)
   	// Apply 1_create_table_test.up.sql
   	testMigrateApply(t, endpoint, migrationsDir, "1", "", "", "")
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: 	mustWriteFile(t, migrationsDir, "2_add_table_test.up.sql", `CREATE TABLE "author"("id" serial NOT NULL, PRIMARY KEY ("id") )`)
   	mustWriteFile(t, migrationsDir, "2_add_table_test.down.sql", `DROP TABLE "author";`)
  
hunk.file_path: cli/commands/migrate_test.go
hunk.type: add
file: import globals from '../../Globals';
  
  const defaultHeader = [
    {
      key: 'Content-Type',
      value: 'application/json',
      isActive: true,
      isNewHeader: false,
      isDisabled: true,
    },
  ];
  defaultHeader.push({
    key: '',
    value: '',
    isActive: false,
    isNewHeader: true,
  });
  
  const getUrl = path => {
    return `${globals.dataApiUrl}${path}`;
  };
  
  const dataApisContent = [];
  // check project version
  dataApisContent.push({
    id: 'DataApi-3',
    details: {
      title: 'GraphQL API',
      description:
        'GraphQL API for CRUD operations on tables & views in your database',
      category: 'data',
    },
    request: {
      method: 'POST',
      url: getUrl('/v1alpha1/graphql'),
      headers: defaultHeader,
      bodyType: 'graphql',
      params: JSON.stringify({}, null, 4),
    },
  });
  
  const dataApis = {
    title: 'Data',
    content: dataApisContent,
  };
  
  const explorerData = {
    sendingRequest: false,
    enableResponseSection: false,
    response: {},
    fileObj: null,
  };
  
  const defaultApi = dataApis.content[0];
  
  const defaultState = {
    currentTab: 0,
    displayedApi: defaultApi,
    modalState: {
      isOpen: false,
      isCopied: false,
    },
    explorerData,
    authApiExpanded: 'Username-password Login',
  };
  
  export default defaultState;
  
  export { defaultApi, defaultHeader };
  